Package org.eclipse.jetty.client
Class HttpResponse
- java.lang.Object
-
- org.eclipse.jetty.client.HttpResponse
-
-
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 Constructor Description HttpResponse(Request request, java.util.List<Response.ResponseListener> listeners)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
abort(java.lang.Throwable cause)
Deprecated.Attempts to abort the receive of this response.HttpFields
getHeaders()
Deprecated.<T extends Response.ResponseListener>
java.util.List<T>getListeners(java.lang.Class<T> type)
Deprecated.java.lang.String
getReason()
Deprecated.Request
getRequest()
Deprecated.int
getStatus()
Deprecated.HttpFields
getTrailers()
Deprecated.HttpVersion
getVersion()
Deprecated.HttpResponse
reason(java.lang.String reason)
Deprecated.HttpResponse
status(int status)
Deprecated.java.lang.String
toString()
Deprecated.HttpResponse
trailer(HttpField trailer)
Deprecated.HttpResponse
version(HttpVersion version)
Deprecated.
-
-
-
Constructor Detail
-
HttpResponse
public HttpResponse(Request request, java.util.List<Response.ResponseListener> listeners)
Deprecated.
-
-
Method Detail
-
getRequest
public Request getRequest()
Deprecated.- Specified by:
getRequest
in interfaceResponse
- Returns:
- the request associated with this response
-
getVersion
public HttpVersion getVersion()
Deprecated.- Specified by:
getVersion
in interfaceResponse
- Returns:
- the HTTP version of this response, such as "HTTP/1.1"
-
version
public HttpResponse version(HttpVersion version)
Deprecated.
-
getStatus
public int getStatus()
Deprecated.
-
status
public HttpResponse status(int status)
Deprecated.
-
getReason
public java.lang.String getReason()
Deprecated.- Specified by:
getReason
in interfaceResponse
- Returns:
- the HTTP reason associated to the
Response.getStatus()
-
reason
public HttpResponse reason(java.lang.String reason)
Deprecated.
-
getHeaders
public HttpFields getHeaders()
Deprecated.- Specified by:
getHeaders
in interfaceResponse
- Returns:
- the headers of this response
-
getListeners
public <T extends Response.ResponseListener> java.util.List<T> getListeners(java.lang.Class<T> type)
Deprecated.- Specified by:
getListeners
in 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 HttpFields getTrailers()
Deprecated.
-
trailer
public HttpResponse trailer(HttpField trailer)
Deprecated.
-
abort
public boolean abort(java.lang.Throwable cause)
Deprecated.Description copied from interface:Response
Attempts to abort the receive of this response.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-