public class HttpToolResponse
extends java.lang.Object
HttpTool
.Constructor and Description |
---|
HttpToolResponse(org.apache.http.HttpResponse response,
long startTime) |
HttpToolResponse(int responseCode,
java.util.Map<java.lang.String,? extends java.util.List<java.lang.String>> headers,
byte[] content,
long startTime,
long durationMillisOfFirstResponse,
long durationMillisOfFullContent) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getContent() |
java.lang.String |
getContentAsString() |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getCookieKeyValues() |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getHeaderLists() |
long |
getLatencyFirstResponse()
returns latency, in milliseconds, before response started coming in
|
long |
getLatencyFullContent()
returns latency, in milliseconds, if value was initialized with a start time
|
java.lang.String |
getReasonPhrase() |
Maybe<org.apache.http.HttpResponse> |
getResponse() |
int |
getResponseCode() |
long |
getStartTime()
returns the timestamp (millis since 1970) when this request was started
|
java.lang.String |
toString() |
public HttpToolResponse(org.apache.http.HttpResponse response, long startTime)
public HttpToolResponse(int responseCode, java.util.Map<java.lang.String,? extends java.util.List<java.lang.String>> headers, byte[] content, long startTime, long durationMillisOfFirstResponse, long durationMillisOfFullContent)
public int getResponseCode()
public java.lang.String getReasonPhrase()
public long getStartTime()
public long getLatencyFullContent()
public long getLatencyFirstResponse()
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaderLists()
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getCookieKeyValues()
public byte[] getContent()
public java.lang.String getContentAsString()
public Maybe<org.apache.http.HttpResponse> getResponse()
public java.lang.String toString()
toString
in class java.lang.Object