public class RestResponse
extends java.lang.Object
Constructor and Description |
---|
RestResponse()
Default Constructor, no data set.
|
RestResponse(byte[] targetArray)
Constructor
|
RestResponse(java.io.InputStream targetStream)
Constructor
|
Modifier and Type | Method and 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) |
public RestResponse()
public RestResponse(java.io.InputStream targetStream)
targetStream
- the input stream that was transferred with this response.public RestResponse(byte[] targetArray)
targetArray
- the byte array that was transferred with this response.public void setTargetByteArray(byte[] targetArray)
public void setEntityInputStream(java.io.InputStream entityInputStream)
public java.io.InputStream getEntityInputStream()
public <T> T getEntity(java.lang.Class<T> clazz)
public java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
public long getContentLength()
public void setContentLength(long length)
public void setDate(long date)
public long getDate()