Response.AsyncContentListener, Response.BeginListener, Response.CompleteListener, Response.ContentListener, Response.DemandedContentListener, Response.FailureListener, Response.HeaderListener, Response.HeadersListener, Response.Listener, Response.ResponseListener, Response.SuccessListener| Constructor and Description |
|---|
HttpResponse(Request request,
List<Response.ResponseListener> listeners) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort(Throwable cause)
Attempts to abort the receive of this response.
|
HttpFields |
getHeaders() |
<T extends Response.ResponseListener> |
getListeners(Class<T> type) |
String |
getReason() |
Request |
getRequest() |
int |
getStatus() |
HttpFields |
getTrailers() |
HttpVersion |
getVersion() |
HttpResponse |
reason(String reason) |
HttpResponse |
status(int status) |
String |
toString() |
HttpResponse |
trailer(HttpField trailer) |
HttpResponse |
version(HttpVersion version) |
public HttpResponse(Request request, List<Response.ResponseListener> listeners)
public Request getRequest()
getRequest in interface Responsepublic HttpVersion getVersion()
getVersion in interface Responsepublic HttpResponse version(HttpVersion version)
public int getStatus()
public HttpResponse status(int status)
public String getReason()
getReason in interface ResponseResponse.getStatus()public HttpResponse reason(String reason)
public HttpFields getHeaders()
getHeaders in interface Responsepublic <T extends Response.ResponseListener> List<T> getListeners(Class<T> type)
getListeners in interface ResponseT - the type of classtype - the listener classRequest.send(org.eclipse.jetty.client.api.Response.CompleteListener)public HttpFields getTrailers()
public HttpResponse trailer(HttpField trailer)
public boolean abort(Throwable cause)
ResponseCopyright © 2010 - 2020 Adobe. All Rights Reserved