public class ResponseOnSingleTask extends 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)| Constructor and Description |
|---|
ResponseOnSingleTask()
Instantiates a new response on single task.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getError()
Gets the error.
|
String |
getErrorMessage()
Gets the error message.
|
String |
getHost()
Gets the host.
|
long |
getOperationTimeMillis()
Gets the operation time millis.
|
String |
getPollingHistory()
Gets the polling history.
|
Map<String,String> |
getPollingHistoryMap()
Gets the polling history map.
|
String |
getReceiveTime()
Gets the receive time.
|
String |
getReceiveTimeInManager()
Gets the receive time in manager.
|
TaskRequest |
getRequest()
Gets the request.
|
String |
getResponseContent()
Gets the response content.
|
Map<String,List<String>> |
getResponseHeaders()
Gets the response headers.
|
String |
getStackTrace()
Gets the stack trace.
|
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(Boolean error)
Sets the error.
|
void |
setErrorMessage(String errorMessage)
Sets the error message.
|
void |
setOperationTimeMillis(long operationTimeMillis)
Sets the operation time millis.
|
void |
setReceiveTime(String receiveTime)
Sets the receive time.
|
void |
setReceiveTimeInManager(String receiveTimeInManager)
Sets the receive time in manager.
|
void |
setRequest(TaskRequest request)
Sets the request.
|
void |
setResponseContent(String responseContent)
Sets the response content.
|
void |
setResponseHeaders(Map<String,List<String>> responseHeaders)
Sets the response headers.
|
void |
setStackTrace(String stackTrace)
Sets the stack trace.
|
void |
setStatusCode(String statusCode)
Sets the status code.
|
void |
setStatusCodeInt(int statusCodeInt)
Sets the status code int.
|
String |
toString() |
public ResponseOnSingleTask()
public Map<String,String> getPollingHistoryMap()
public String getPollingHistory()
public String getReceiveTime()
public void setReceiveTime(String receiveTime)
receiveTime - the new receive timepublic String getResponseContent()
public void setResponseContent(String responseContent)
responseContent - the new response contentpublic String getReceiveTimeInManager()
public void setReceiveTimeInManager(String receiveTimeInManager)
receiveTimeInManager - the new receive time in managerpublic boolean isError()
public void setError(boolean error)
error - the new errorpublic String getStackTrace()
public void setStackTrace(String stackTrace)
stackTrace - the new stack tracepublic long getOperationTimeMillis()
public void setOperationTimeMillis(long operationTimeMillis)
operationTimeMillis - the new operation time millispublic String getStatusCode()
public void setStatusCode(String statusCode)
statusCode - the new status codepublic TaskRequest getRequest()
public void setRequest(TaskRequest request)
request - the new requestpublic String getHost()
public String getErrorMessage()
public void setErrorMessage(String errorMessage)
errorMessage - the new error messagepublic int getStatusCodeInt()
public void setStatusCodeInt(int statusCodeInt)
statusCodeInt - the new status code intpublic Boolean getError()
public void setError(Boolean error)
error - the new errorpublic Map<String,List<String>> getResponseHeaders()
public void setResponseHeaders(Map<String,List<String>> responseHeaders)
responseHeaders - the response headersCopyright © 2015–2017 eBay. All rights reserved.