java.lang.Object
org.eclipse.jetty.client.HttpResponse
- All Implemented Interfaces:
Response
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.client.api.Response
Response.AsyncContentListener, Response.BeginListener, Response.CompleteListener, Response.ContentListener, Response.DemandedContentListener, Response.FailureListener, Response.HeaderListener, Response.HeadersListener, Response.Listener, Response.ResponseListener, Response.SuccessListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAttempts to abort the receive of this response.addHeader(org.eclipse.jetty.http.HttpField header) voidorg.eclipse.jetty.http.HttpFields<T extends Response.ResponseListener>
List<T>getListeners(Class<T> type) intorg.eclipse.jetty.http.HttpFieldsorg.eclipse.jetty.http.HttpVersionstatus(int status) toString()trailer(org.eclipse.jetty.http.HttpField trailer) version(org.eclipse.jetty.http.HttpVersion version)
-
Constructor Details
-
HttpResponse
-
-
Method Details
-
getRequest
- Specified by:
getRequestin interfaceResponse- Returns:
- the request associated with this response
-
getVersion
public org.eclipse.jetty.http.HttpVersion getVersion()- Specified by:
getVersionin interfaceResponse- Returns:
- the HTTP version of this response, such as "HTTP/1.1"
-
version
-
getStatus
public int getStatus() -
status
-
getReason
- Specified by:
getReasonin interfaceResponse- Returns:
- the HTTP reason associated to the
Response.getStatus()
-
reason
-
getHeaders
public org.eclipse.jetty.http.HttpFields getHeaders()- Specified by:
getHeadersin interfaceResponse- Returns:
- the headers of this response
-
clearHeaders
public void clearHeaders() -
addHeader
-
headers
-
getListeners
- Specified by:
getListenersin interfaceResponse- Type Parameters:
T- the type of class- Parameters:
type- the listener class- Returns:
- the response listener passed to
Request.send(org.eclipse.jetty.client.api.Response.CompleteListener)
-
getTrailers
public org.eclipse.jetty.http.HttpFields getTrailers() -
trailer
-
abort
Description copied from interface:ResponseAttempts to abort the receive of this response. -
toString
-