Package jadex.extension.rs.invoke
Class RestResponse
- java.lang.Object
-
- jadex.extension.rs.invoke.RestResponse
-
public class RestResponse extends java.lang.ObjectRest Response container. Includes header data and body (as byte array).
-
-
Constructor Summary
Constructors Constructor Description RestResponse()Default Constructor, no data set.RestResponse(byte[] targetArray)ConstructorRestResponse(java.io.InputStream targetStream)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetContentLength()java.lang.StringgetContentType()longgetDate()<T> TgetEntity(java.lang.Class<T> clazz)java.io.InputStreamgetEntityInputStream()voidsetContentLength(long length)voidsetContentType(java.lang.String contentType)voidsetDate(long date)voidsetEntityInputStream(java.io.InputStream entityInputStream)voidsetTargetByteArray(byte[] targetArray)
-
-
-
Constructor Detail
-
RestResponse
public RestResponse()
Default Constructor, no data set.
-
RestResponse
public RestResponse(java.io.InputStream targetStream)
Constructor- Parameters:
targetStream- the input stream that was transferred with this response.
-
RestResponse
public RestResponse(byte[] targetArray)
Constructor- Parameters:
targetArray- the byte array that was transferred with this response.
-
-
Method Detail
-
setTargetByteArray
public void setTargetByteArray(byte[] targetArray)
-
setEntityInputStream
public void setEntityInputStream(java.io.InputStream entityInputStream)
-
getEntityInputStream
public java.io.InputStream getEntityInputStream()
-
getEntity
public <T> T getEntity(java.lang.Class<T> clazz)
-
getContentType
public java.lang.String getContentType()
-
setContentType
public void setContentType(java.lang.String contentType)
-
getContentLength
public long getContentLength()
-
setContentLength
public void setContentLength(long length)
-
setDate
public void setDate(long date)
-
getDate
public long getDate()
-
-