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.RuntimeExceptionException- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringcontentThe received contentprotected intstatuscodeReturn 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.StringgetContent()Gets the received content.intgetStatuscode()Gets the received status code.voidsetContent(java.lang.String content)Sets the received content.voidsetStatuscode(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.
-
-