public class ResponseOnSingeRequest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
errorMessage
The error message.
|
private boolean |
failObtainResponse
The fail obtain response.
|
private java.lang.String |
receiveTime
The receive time.
|
private java.lang.String |
responseBody
The response body.
|
private java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
responseHeaders
The response headers: keys are lower cased.
|
private java.lang.String |
stackTrace
The stack trace.
|
private java.lang.String |
statusCode
The status code.
|
private int |
statusCodeInt
The status code int.
|
Constructor and Description |
---|
ResponseOnSingeRequest()
Instantiates a new response on singe request.
|
ResponseOnSingeRequest(java.lang.String responseBody,
boolean failObtainResponse,
java.lang.String errorMessage,
java.lang.String stackTrace,
java.lang.String statusCode,
int statusCodeInt,
java.lang.String receiveTime,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders)
Instantiates a new response on singe request.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorMessage()
Gets the error message.
|
java.lang.String |
getReceiveTime()
Gets the receive time.
|
java.lang.String |
getResponseBody()
Gets the response body.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getResponseHeaders()
Gets the response headers.
|
java.lang.String |
getStackTrace()
Gets the stack trace.
|
java.lang.String |
getStatusCode()
Gets the status code.
|
int |
getStatusCodeInt()
Gets the status code int.
|
boolean |
isFailObtainResponse()
Checks if is fail obtain response.
|
void |
setErrorMessage(java.lang.String errorMessage)
Sets the error message.
|
void |
setFailObtainResponse(boolean failObtainResponse)
Sets the fail obtain response.
|
void |
setReceiveTime(java.lang.String receiveTime)
Sets the receive time.
|
void |
setReceiveTimeNow()
Sets the receive time now.
|
void |
setResponseBody(java.lang.String responseBody)
Sets the response body.
|
void |
setResponseHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders)
Sets the response headers.
|
void |
setStackTrace(java.lang.String stackTrace)
Sets the stack trace.
|
void |
setStatusCode(java.lang.String statusCode)
Sets the status code.
|
void |
setStatusCodeInt(int statusCodeInt)
Sets the status code int.
|
java.lang.String |
toString() |
private java.lang.String responseBody
private boolean failObtainResponse
private java.lang.String errorMessage
private java.lang.String stackTrace
private int statusCodeInt
private java.lang.String statusCode
private java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders
private java.lang.String receiveTime
public ResponseOnSingeRequest(java.lang.String responseBody, boolean failObtainResponse, java.lang.String errorMessage, java.lang.String stackTrace, java.lang.String statusCode, int statusCodeInt, java.lang.String receiveTime, java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders)
responseBody
- the response bodyfailObtainResponse
- the fail obtain responseerrorMessage
- the error messagestackTrace
- the stack tracestatusCode
- the status codestatusCodeInt
- the status code intreceiveTime
- the receive timeresponseHeaders
- the response headerspublic ResponseOnSingeRequest()
public boolean isFailObtainResponse()
public void setFailObtainResponse(boolean failObtainResponse)
failObtainResponse
- the new fail obtain responsepublic void setResponseBody(java.lang.String responseBody)
responseBody
- the new response bodypublic void setErrorMessage(java.lang.String errorMessage)
errorMessage
- the new error messagepublic void setStackTrace(java.lang.String stackTrace)
stackTrace
- the new stack tracepublic void setStatusCode(java.lang.String statusCode)
statusCode
- the new status codepublic java.lang.String getResponseBody()
public java.lang.String getErrorMessage()
public java.lang.String getStackTrace()
public java.lang.String getStatusCode()
public java.lang.String getReceiveTime()
public void setReceiveTimeNow()
public void setReceiveTime(java.lang.String receiveTime)
receiveTime
- the new receive timepublic int getStatusCodeInt()
public void setStatusCodeInt(int statusCodeInt)
statusCodeInt
- the new status code intpublic java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getResponseHeaders()
public void setResponseHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders)
responseHeaders
- the response headers