Package jadex.extension.rs.invoke
Class RestResponse
- java.lang.Object
-
- jadex.extension.rs.invoke.RestResponse
-
public class RestResponse extends java.lang.Object
Rest 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 long
getContentLength()
java.lang.String
getContentType()
long
getDate()
<T> T
getEntity(java.lang.Class<T> clazz)
java.io.InputStream
getEntityInputStream()
void
setContentLength(long length)
void
setContentType(java.lang.String contentType)
void
setDate(long date)
void
setEntityInputStream(java.io.InputStream entityInputStream)
void
setTargetByteArray(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()
-
-