public class ResponseOnSingeRequest extends Object
| Constructor and Description |
|---|
ResponseOnSingeRequest()
Instantiates a new response on singe request.
|
ResponseOnSingeRequest(String responseBody,
boolean failObtainResponse,
String errorMessage,
String stackTrace,
String statusCode,
int statusCodeInt,
String receiveTime,
Map<String,List<String>> responseHeaders)
Instantiates a new response on singe request.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessage()
Gets the error message.
|
String |
getReceiveTime()
Gets the receive time.
|
String |
getResponseBody()
Gets the response body.
|
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 |
isFailObtainResponse()
Checks if is fail obtain response.
|
void |
setErrorMessage(String errorMessage)
Sets the error message.
|
void |
setFailObtainResponse(boolean failObtainResponse)
Sets the fail obtain response.
|
void |
setReceiveTime(String receiveTime)
Sets the receive time.
|
void |
setReceiveTimeNow()
Sets the receive time now.
|
void |
setResponseBody(String responseBody)
Sets the response body.
|
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 ResponseOnSingeRequest(String responseBody, boolean failObtainResponse, String errorMessage, String stackTrace, String statusCode, int statusCodeInt, String receiveTime, Map<String,List<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(String responseBody)
responseBody - the new response bodypublic void setErrorMessage(String errorMessage)
errorMessage - the new error messagepublic void setStackTrace(String stackTrace)
stackTrace - the new stack tracepublic void setStatusCode(String statusCode)
statusCode - the new status codepublic String getResponseBody()
public String getErrorMessage()
public String getStackTrace()
public String getStatusCode()
public String getReceiveTime()
public void setReceiveTimeNow()
public void setReceiveTime(String receiveTime)
receiveTime - the new receive timepublic int getStatusCodeInt()
public void setStatusCodeInt(int statusCodeInt)
statusCodeInt - the new status code intpublic Map<String,List<String>> getResponseHeaders()
Copyright © 2015–2017 eBay. All rights reserved.