Response.AsyncContentListener, Response.BeginListener, Response.CompleteListener, Response.ContentListener, 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() |
HttpVersion |
getVersion() |
HttpResponse |
reason(String reason) |
HttpResponse |
status(int status) |
String |
toString() |
HttpResponse |
version(HttpVersion version) |
public HttpResponse(Request request, List<Response.ResponseListener> listeners)
public Request getRequest()
getRequest
in interface Response
public HttpVersion getVersion()
getVersion
in interface Response
public HttpResponse version(HttpVersion version)
public int getStatus()
public HttpResponse status(int status)
public String getReason()
getReason
in interface Response
Response.getStatus()
public HttpResponse reason(String reason)
public HttpFields getHeaders()
getHeaders
in interface Response
public <T extends Response.ResponseListener> List<T> getListeners(Class<T> type)
getListeners
in interface Response
Request#send(CompleteListener)
public boolean abort(Throwable cause)
Response
Copyright © 1995-2015 Webtide. All Rights Reserved.