Package org.eclipse.jetty.client.api
Interface Response
-
- All Known Subinterfaces:
ContentResponse
- All Known Implementing Classes:
HttpContentResponse
,HttpResponse
@Deprecated(since="2021-05-27") public interface Response
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Response
represents an HTTP response and offers methods to retrieve status code, HTTP version and headers.Response
objects are passed as parameters toResponse.Listener
callbacks, or as future result ofRequest.send()
.Response
objects do not contain getters for the response content, because it may be too large to fit into memory. The response content should be retrieved viacontent events
, or via utility classes such asBufferingResponseListener
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Response.AsyncContentListener
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interface
Response.BeginListener
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interface
Response.CompleteListener
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interface
Response.ContentListener
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interface
Response.DemandedContentListener
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interface
Response.FailureListener
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interface
Response.HeaderListener
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interface
Response.HeadersListener
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interface
Response.Listener
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interface
Response.ResponseListener
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interface
Response.SuccessListener
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
-
Method Summary
All Methods Instance Methods Abstract 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> listenerClass)
Deprecated.java.lang.String
getReason()
Deprecated.Request
getRequest()
Deprecated.int
getStatus()
Deprecated.HttpVersion
getVersion()
Deprecated.
-
-
-
Method Detail
-
getRequest
Request getRequest()
Deprecated.- Returns:
- the request associated with this response
-
getListeners
<T extends Response.ResponseListener> java.util.List<T> getListeners(java.lang.Class<T> listenerClass)
Deprecated.- Type Parameters:
T
- the type of class- Parameters:
listenerClass
- the listener class- Returns:
- the response listener passed to
Request.send(org.eclipse.jetty.client.api.Response.CompleteListener)
-
getVersion
HttpVersion getVersion()
Deprecated.- Returns:
- the HTTP version of this response, such as "HTTP/1.1"
-
getStatus
int getStatus()
Deprecated.- Returns:
- the HTTP status code of this response, such as 200 or 404
-
getReason
java.lang.String getReason()
Deprecated.- Returns:
- the HTTP reason associated to the
getStatus()
-
getHeaders
HttpFields getHeaders()
Deprecated.- Returns:
- the headers of this response
-
abort
boolean abort(java.lang.Throwable cause)
Deprecated.Attempts to abort the receive of this response.- Parameters:
cause
- the abort cause, must not be null- Returns:
- whether the abort succeeded
-
-