public class ResponseObject
Constructor and description |
---|
ResponseObject
() |
ResponseObject
(String responseText) |
Type Params | Return Type | Name and description |
---|---|---|
|
public String |
extractSOAPBodyAsContent() |
|
public HttpBodyContent |
getBodyContent() |
|
public String |
getContentCharset()
|
|
public long |
getContentDownloadTime() |
|
public String |
getContentType() Get the content type |
|
public long |
getElapsedTime() |
|
public String |
getHeaderField(String name) |
|
public Map<String, List<String>> |
getHeaderFields() Get the header fields as a Map |
|
public String |
getResponseBodyContent() |
|
public long |
getResponseBodySize() |
|
public long |
getResponseHeaderSize() Returns headers size (byte) as long value of the response. |
|
public long |
getResponseSize() Returns size (byte) as long value of the response. |
|
public String |
getResponseText() Get the raw response text |
|
public int |
getStatusCode() Get the status code |
|
public long |
getWaitingTime() |
|
public boolean |
isJsonContentType() Check if the content type of this response is json |
|
public boolean |
isSOAPResponse() Check if this response is soap |
|
public boolean |
isTextContentType() Check if the content type of this response is raw text |
|
public boolean |
isXmlContentType() Check if the content type of this response is xml |
|
public void |
setBodyContent(HttpBodyContent bodyContent) |
|
public void |
setContentCharset(String contentCharset) |
|
public void |
setContentDownloadTime(long contentDownloadTime) |
|
public void |
setContentType(String contentType) Set the content type |
|
public void |
setHeaderFields(Map<String, List<String>> headerFields) Set the header fields |
|
public void |
setResponseBodySize(long reponseBodySize) Returns body size (byte) as long value of the response. |
|
public void |
setResponseHeaderSize(long reponseHeaderSize) |
|
public void |
setResponseText(String responseText) Set the raw response text |
|
public void |
setStatusCode(int statusCode) Set the status code |
|
public void |
setWaitingTime(long waitingTime) |
|
public String |
toString() |
Get the content type
Get the header fields as a Map
Returns headers size (byte) as long value of the response.
Returns size (byte) as long value of the response. Response size = Header size + Body size
Get the raw response text
Get the status code
Check if the content type of this response is json
Check if this response is soap
Check if the content type of this response is raw text
Check if the content type of this response is xml
Set the content type
contentType
- the new content typeSet the header fields
headerFields
- the new header fields as a MapReturns body size (byte) as long value of the response.
Set the raw response text
responseText
- the new raw response textSet the status code
statusCode
- the status code