Package jadex.extension.rs.invoke
Class RestInvocationHelper.RequestFailedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jadex.extension.rs.invoke.RestInvocationHelper.RequestFailedException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- RestInvocationHelper
public static class RestInvocationHelper.RequestFailedException extends java.lang.RuntimeException
Exception- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
content
The received contentprotected int
statuscode
Return status code
-
Constructor Summary
Constructors Constructor Description RequestFailedException(java.lang.String message, int statuscode, java.lang.String content)
Create the exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContent()
Gets the received content.int
getStatuscode()
Gets the received status code.void
setContent(java.lang.String content)
Sets the received content.void
setStatuscode(int statuscode)
Sets the received status code.
-
-
-
Method Detail
-
getStatuscode
public int getStatuscode()
Gets the received status code.- Returns:
- The received status code.
-
setStatuscode
public void setStatuscode(int statuscode)
Sets the received status code.- Parameters:
statuscode
- The received status code.
-
getContent
public java.lang.String getContent()
Gets the received content.- Returns:
- The received content.
-
setContent
public void setContent(java.lang.String content)
Sets the received content.- Parameters:
statuscode
- The received content.
-
-