public static class HttpConnetcionEX.ResponseX extends Object
| 构造器和说明 |
|---|
ResponseX(int responseCode,
int contentLength,
String responseType,
Object responseResult)
Instantiates a new Response x.
|
ResponseX(int responseCode,
int contentLength,
String responseType,
Object responseResult,
String responseException)
Instantiates a new Response x.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,Object> |
getAdditionalInformation()
Gets additional information.
|
int |
getContentLength()
Gets content length.
|
long |
getCostAllTime()
Gets cost all time.
|
long |
getCostTime()
Gets cost time.
|
Map<String,List<String>> |
getHeaderFields()
Gets header fields.
|
int |
getResponseCode()
Gets response code.
|
String |
getResponseCookie()
Gets response cookie.
|
String |
getResponseException()
Gets response exception.
|
Object |
getResponseResult()
Gets response result.
|
String |
getResponseType()
Gets response type.
|
ResutlType |
getResutlType()
Gets resutl type.
|
void |
setAdditionalInformation(Map<String,Object> additionalInformation)
Sets additional information.
|
void |
setContentLength(int contentLength)
Sets content length.
|
void |
setCostAllTime(long costAllTime)
Sets cost all time.
|
void |
setCostTime(long costTime)
Sets cost time.
|
void |
setHeaderFields(Map<String,List<String>> headerFields)
Sets header fields.
|
void |
setResponseCode(int responseCode)
Sets response code.
|
void |
setResponseException(String responseException)
Sets response exception.
|
void |
setResponseResult(Object responseResult)
Sets response result.
|
void |
setResponseType(String responseType)
Sets response type.
|
void |
setResutlType(ResutlType resutlType)
Sets resutl type.
|
public ResponseX(int responseCode,
int contentLength,
String responseType,
Object responseResult,
String responseException)
responseCode - the response codecontentLength - the content lengthresponseType - the response typeresponseResult - the response resultresponseException - the response exceptionpublic int getContentLength()
public void setContentLength(int contentLength)
contentLength - the content lengthpublic int getResponseCode()
public void setResponseCode(int responseCode)
responseCode - the response codepublic String getResponseType()
public void setResponseType(String responseType)
responseType - the response typepublic Object getResponseResult()
public void setResponseResult(Object responseResult)
responseResult - the response resultpublic String getResponseException()
public void setResponseException(String responseException)
responseException - the response exceptionpublic Map<String,List<String>> getHeaderFields()
public void setHeaderFields(Map<String,List<String>> headerFields)
headerFields - the header fieldspublic long getCostTime()
public void setCostTime(long costTime)
costTime - the cost timepublic long getCostAllTime()
public void setCostAllTime(long costAllTime)
costAllTime - the cost all timepublic String getResponseCookie()
public ResutlType getResutlType()
public void setResutlType(ResutlType resutlType)
resutlType - the resutl typepublic Map<String,Object> getAdditionalInformation()
Copyright © 2020. All rights reserved.