public class ServiceResponse extends APIBean
| Constructor and Description |
|---|
ServiceResponse()
Default constructor.
|
ServiceResponse(java.lang.String content,
java.lang.String contentType,
IServiceContentEncoding contentEncoding,
int contentLength,
ServiceHeader[] serviceHeaders,
ServiceSession serviceSession,
int statusCode)
Constructor with fields
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContent()
Returns the content
|
IServiceContentEncoding |
getContentEncoding()
Returns the content encoding
|
int |
getContentLength()
Returns the content length
|
java.lang.String |
getContentType()
Returns the content type
|
ServiceHeader[] |
getServiceHeaders()
Returns the array of ServiceHeader
|
ServiceSession |
getServiceSession()
Getter for service session
|
int |
getStatusCode()
Returns the status code of the response.
|
void |
setContent(java.lang.String content)
Set the content
|
void |
setContentEncoding(IServiceContentEncoding contentEncoding)
Set the content encoding
|
void |
setContentLength(int contentLength)
Set the content length.
|
void |
setContentType(java.lang.String contentType)
Set the content type
|
void |
setServiceHeaders(ServiceHeader[] serviceHeaders)
Set the array of ServiceHeader
|
void |
setServiceSession(ServiceSession serviceSession)
Setter for service session
|
void |
setStatusCode(int statusCode)
Sets the status code of the response
|
public ServiceResponse()
public ServiceResponse(java.lang.String content,
java.lang.String contentType,
IServiceContentEncoding contentEncoding,
int contentLength,
ServiceHeader[] serviceHeaders,
ServiceSession serviceSession,
int statusCode)
content - Request/Response data content (plain text).contentType - The request/response content type (MIME TYPE).contentEncoding - Encoding of the binary payload - by default assumed to be UTF8.contentLength - The length in bytes for the Content field.serviceHeaders - The serviceHeaders array (name,value pairs) to be included on the I/O service request.serviceSession - Information about the sessionstatusCode - HTTP Status code of the response.public IServiceContentEncoding getContentEncoding()
public void setContentEncoding(IServiceContentEncoding contentEncoding)
contentEncoding - Encoding of the binary payload - by default assumed to be UTF8.public java.lang.String getContent()
public void setContent(java.lang.String content)
content - Request/Response data content (plain text).public int getContentLength()
public void setContentLength(int contentLength)
contentLength - The length in bytes for the Content field.public java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType - The request/response content type (MIME TYPE).public ServiceHeader[] getServiceHeaders()
public void setServiceHeaders(ServiceHeader[] serviceHeaders)
serviceHeaders - The serviceHeaders array (name,value pairs) to be included on the I/O service request.public ServiceSession getServiceSession()
public void setServiceSession(ServiceSession serviceSession)
serviceSession - The element service sessionpublic int getStatusCode()
public void setStatusCode(int statusCode)
statusCode - HTTP status code