Package org.eclipse.jetty.client.api
Interface Response
- All Known Subinterfaces:
ContentResponse
- All Known Implementing Classes:
HttpContentResponse,HttpResponse
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 to Response.Listener callbacks, or as
future result of Request.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 via content
events, or via utility classes such as BufferingResponseListener.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interfaceDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interfaceDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interfaceDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interfaceDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interfaceDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interfaceDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interfaceDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interfaceDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interfaceDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interfaceDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Attempts to abort the receive of this response.Deprecated.<T extends Response.ResponseListener>
List<T> getListeners(Class<T> listenerClass) Deprecated.Deprecated.Deprecated.intDeprecated.Deprecated.
-
Method Details
-
getRequest
Request getRequest()Deprecated.- Returns:
- the request associated with this response
-
getListeners
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
String getReason()Deprecated.- Returns:
- the HTTP reason associated to the
getStatus()
-
getHeaders
HttpFields getHeaders()Deprecated.- Returns:
- the headers of this response
-
abort
Deprecated.Attempts to abort the receive of this response.- Parameters:
cause- the abort cause, must not be null- Returns:
- whether the abort succeeded
-