public class RestResponse extends Object
Constructor and Description |
---|
RestResponse()
Default Constructor, no data set.
|
RestResponse(byte[] targetArray)
Constructor
|
RestResponse(InputStream targetStream)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getContentLength() |
String |
getContentType() |
long |
getDate() |
<T> T |
getEntity(Class<T> clazz) |
InputStream |
getEntityInputStream() |
void |
setContentLength(long length) |
void |
setContentType(String contentType) |
void |
setDate(long date) |
void |
setEntityInputStream(InputStream entityInputStream) |
void |
setTargetByteArray(byte[] targetArray) |
public RestResponse()
public RestResponse(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(InputStream entityInputStream)
public InputStream getEntityInputStream()
public <T> T getEntity(Class<T> clazz)
public String getContentType()
public void setContentType(String contentType)
public long getContentLength()
public void setContentLength(long length)
public void setDate(long date)
public long getDate()
Copyright © 2013. All Rights Reserved.