public class ResponseOnSingleTask
extends java.lang.Object
isError()
is true: means fail to receive
response.
Note that by default, the response content is not saved into the
singleTaskResponse. Unless the user change the config by calling
ParallelTaskBuilder.setSaveResponseToTask(boolean)
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
error
The error.
|
private java.lang.String |
errorMessage
The error message.
|
private long |
operationTimeMillis
The operation time millis.
|
private java.util.Map<java.lang.String,java.lang.String> |
pollingHistoryMap
The polling history map.
|
private java.lang.String |
receiveTime
The receive time.
|
private java.lang.String |
receiveTimeInManager
The receive time in manager.
|
private TaskRequest |
request
The request.
|
private java.lang.String |
responseContent
The response content.
|
private java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
responseHeaders
The response headers.
|
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 |
---|
ResponseOnSingleTask()
Instantiates a new response on single task.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getError()
Gets the error.
|
java.lang.String |
getErrorMessage()
Gets the error message.
|
java.lang.String |
getHost()
Gets the host.
|
long |
getOperationTimeMillis()
Gets the operation time millis.
|
java.lang.String |
getPollingHistory()
Gets the polling history.
|
java.util.Map<java.lang.String,java.lang.String> |
getPollingHistoryMap()
Gets the polling history map.
|
java.lang.String |
getReceiveTime()
Gets the receive time.
|
java.lang.String |
getReceiveTimeInManager()
Gets the receive time in manager.
|
TaskRequest |
getRequest()
Gets the request.
|
java.lang.String |
getResponseContent()
Gets the response content.
|
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 |
isError()
Checks if is error.
|
void |
setError(boolean error)
Sets the error.
|
void |
setError(java.lang.Boolean error)
Sets the error.
|
void |
setErrorMessage(java.lang.String errorMessage)
Sets the error message.
|
void |
setOperationTimeMillis(long operationTimeMillis)
Sets the operation time millis.
|
void |
setReceiveTime(java.lang.String receiveTime)
Sets the receive time.
|
void |
setReceiveTimeInManager(java.lang.String receiveTimeInManager)
Sets the receive time in manager.
|
void |
setRequest(TaskRequest request)
Sets the request.
|
void |
setResponseContent(java.lang.String responseContent)
Sets the response content.
|
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 TaskRequest request
private java.lang.String responseContent
private java.lang.String receiveTime
private java.lang.String receiveTimeInManager
private java.lang.Boolean error
private java.lang.String errorMessage
private java.lang.String stackTrace
private java.lang.String statusCode
private int statusCodeInt
private long operationTimeMillis
private final java.util.Map<java.lang.String,java.lang.String> pollingHistoryMap
private java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders
public ResponseOnSingleTask()
public java.util.Map<java.lang.String,java.lang.String> getPollingHistoryMap()
public java.lang.String getPollingHistory()
public java.lang.String getReceiveTime()
public void setReceiveTime(java.lang.String receiveTime)
receiveTime
- the new receive timepublic java.lang.String getResponseContent()
public void setResponseContent(java.lang.String responseContent)
responseContent
- the new response contentpublic java.lang.String getReceiveTimeInManager()
public void setReceiveTimeInManager(java.lang.String receiveTimeInManager)
receiveTimeInManager
- the new receive time in managerpublic boolean isError()
public void setError(boolean error)
error
- the new errorpublic java.lang.String getStackTrace()
public void setStackTrace(java.lang.String stackTrace)
stackTrace
- the new stack tracepublic long getOperationTimeMillis()
public void setOperationTimeMillis(long operationTimeMillis)
operationTimeMillis
- the new operation time millispublic java.lang.String getStatusCode()
public void setStatusCode(java.lang.String statusCode)
statusCode
- the new status codepublic TaskRequest getRequest()
public void setRequest(TaskRequest request)
request
- the new requestpublic java.lang.String getHost()
public java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String errorMessage)
errorMessage
- the new error messagepublic int getStatusCodeInt()
public void setStatusCodeInt(int statusCodeInt)
statusCodeInt
- the new status code intpublic java.lang.Boolean getError()
public void setError(java.lang.Boolean error)
error
- the new errorpublic 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 headerspublic java.lang.String toString()
toString
in class java.lang.Object