Uses of Interface
org.apache.hc.core5.http.HttpResponse
-
Packages that use HttpResponse Package Description org.apache.hc.core5.http Core HTTP transport component APIs.org.apache.hc.core5.http.impl Default implementations of core HTTP APIs.org.apache.hc.core5.http.impl.nio Default implementation of HTTP/1.1 transport based on the asynchronous (non-blocking) I/O model.org.apache.hc.core5.http.io Core HTTP transport APIs based on the classic (blocking) I/O model.org.apache.hc.core5.http.io.support Support classes for the classic (blocking) I/O model.org.apache.hc.core5.http.message Core HTTP message components, message element parser and writer APIs and their default implementations.org.apache.hc.core5.http.nio Core HTTP transport APIs based on the asynchronous, event driven I/O model.org.apache.hc.core5.http.nio.support Support classes for the asynchronous I/O model.org.apache.hc.core5.http.nio.support.classic Support classes for the asynchronous I/O model that emulate behavior of the classic (blocking) I/O model.org.apache.hc.core5.http.protocol Core HTTP protocol interceptors.org.apache.hc.core5.http.support org.apache.hc.core5.http2.impl Default implementations of core HTTP/2 APIs.org.apache.hc.core5.http2.impl.nio Default implementation of HTTP/2 transport based on the asynchronous (non-blocking) I/O model.org.apache.hc.core5.http2.protocol HTTP/2 protocol interceptors.org.apache.hc.core5.reactive org.apache.hc.core5.testing.classic org.apache.hc.core5.testing.nio -
-
Uses of HttpResponse in org.apache.hc.core5.http
Classes in org.apache.hc.core5.http with type parameters of type HttpResponse Modifier and Type Interface Description interface
HttpResponseFactory<T extends HttpResponse>
A factory forHttpResponse
objects.Subinterfaces of HttpResponse in org.apache.hc.core5.http Modifier and Type Interface Description interface
ClassicHttpResponse
'Classic'HttpResponse
message that can encloseHttpEntity
.Methods in org.apache.hc.core5.http with parameters of type HttpResponse Modifier and Type Method Description boolean
ConnectionReuseStrategy. keepAlive(HttpRequest request, HttpResponse response, HttpContext context)
Decides whether a connection can be kept open after a request.void
HttpResponseInterceptor. process(HttpResponse response, EntityDetails entity, HttpContext context)
Processes a response. -
Uses of HttpResponse in org.apache.hc.core5.http.impl
Methods in org.apache.hc.core5.http.impl with parameters of type HttpResponse Modifier and Type Method Description boolean
DefaultConnectionReuseStrategy. keepAlive(HttpRequest request, HttpResponse response, HttpContext context)
void
Http1StreamListener. onResponseHead(HttpConnection connection, HttpResponse response)
static void
ServerSupport. validateResponse(HttpResponse response, EntityDetails responseEntityDetails)
-
Uses of HttpResponse in org.apache.hc.core5.http.impl.nio
Classes in org.apache.hc.core5.http.impl.nio with type parameters of type HttpResponse Modifier and Type Class Description class
DefaultHttpResponseParser<T extends HttpResponse>
DefaultNHttpMessageParser
implementation forHttpResponse
s.class
DefaultHttpResponseWriter<T extends HttpResponse>
DefaultNHttpMessageWriter
implementation forHttpResponse
s.Fields in org.apache.hc.core5.http.impl.nio declared as HttpResponse Modifier and Type Field Description private HttpResponse
ServerHttp1StreamDuplexer.DelayedOutputChannel. delayedResponse
Fields in org.apache.hc.core5.http.impl.nio with type parameters of type HttpResponse Modifier and Type Field Description private Http1StreamChannel<HttpResponse>
ServerHttp1StreamDuplexer.DelayedOutputChannel. channel
private Http1StreamChannel<HttpResponse>
ServerHttp1StreamDuplexer. outputChannel
private Http1StreamChannel<HttpResponse>
ServerHttp1StreamHandler. outputChannel
private HttpResponseFactory<HttpResponse>
DefaultHttpResponseParserFactory. responseFactory
private NHttpMessageParserFactory<HttpResponse>
ClientHttp1StreamDuplexerFactory. responseParserFactory
private NHttpMessageWriterFactory<HttpResponse>
ServerHttp1StreamDuplexerFactory. responseWriterFactory
Methods in org.apache.hc.core5.http.impl.nio that return HttpResponse Modifier and Type Method Description HttpResponse
DefaultHttpResponseFactory. newHttpResponse(int status)
HttpResponse
DefaultHttpResponseFactory. newHttpResponse(int status, java.lang.String reasonPhrase)
Methods in org.apache.hc.core5.http.impl.nio that return types with arguments of type HttpResponse Modifier and Type Method Description NHttpMessageParser<HttpResponse>
DefaultHttpResponseParserFactory. create()
NHttpMessageWriter<HttpResponse>
DefaultHttpResponseWriterFactory. create()
Methods in org.apache.hc.core5.http.impl.nio with parameters of type HttpResponse Modifier and Type Method Description private void
ServerHttp1StreamHandler. commitInformation(HttpResponse response)
private void
ServerHttp1StreamHandler. commitResponse(HttpResponse response, EntityDetails responseEntityDetails)
(package private) void
ClientHttp1StreamDuplexer. consumeHeader(HttpResponse response, EntityDetails entityDetails)
(package private) void
ClientHttp1StreamHandler. consumeHeader(HttpResponse response, EntityDetails entityDetails)
protected boolean
ClientHttp1StreamDuplexer. handleIncomingMessage(HttpResponse response)
protected boolean
ServerHttp1StreamDuplexer. handleOutgoingMessage(HttpResponse response)
void
ServerHttp1StreamDuplexer.DelayedOutputChannel. submit(HttpResponse response, boolean endStream, FlushMode flushMode)
(package private) void
ClientHttp1StreamDuplexer. updateInputMetrics(HttpResponse response, BasicHttpConnectionMetrics connMetrics)
(package private) void
ServerHttp1StreamDuplexer. updateOutputMetrics(HttpResponse response, BasicHttpConnectionMetrics connMetrics)
-
Uses of HttpResponse in org.apache.hc.core5.http.io
Methods in org.apache.hc.core5.http.io with parameters of type HttpResponse Modifier and Type Method Description void
HttpResponseInformationCallback. execute(HttpResponse response, HttpConnection connection, HttpContext context)
-
Uses of HttpResponse in org.apache.hc.core5.http.io.support
Methods in org.apache.hc.core5.http.io.support with parameters of type HttpResponse Modifier and Type Method Description protected HttpEntity
AbstractHttpServerAuthFilter. generateResponseContent(HttpResponse unauthorized)
Generates response body for UNAUTHORIZED response.protected HttpEntity
HttpServerExpectationFilter. generateResponseContent(HttpResponse expectationFailed)
Generates response content entity for the final HTTP response with an error status representing the cause of expectation failure. -
Uses of HttpResponse in org.apache.hc.core5.http.message
Classes in org.apache.hc.core5.http.message that implement HttpResponse Modifier and Type Class Description class
BasicClassicHttpResponse
Basic implementation ofClassicHttpResponse
.class
BasicHttpResponse
Basic implementation ofHttpResponse
.class
HttpResponseWrapper
Wraps anHttpResponse
.Methods in org.apache.hc.core5.http.message with parameters of type HttpResponse Modifier and Type Method Description static boolean
MessageSupport. canResponseHaveBody(java.lang.String method, HttpResponse response)
Constructors in org.apache.hc.core5.http.message with parameters of type HttpResponse Constructor Description HttpResponseWrapper(HttpResponse message)
StatusLine(HttpResponse response)
-
Uses of HttpResponse in org.apache.hc.core5.http.nio
Methods in org.apache.hc.core5.http.nio with parameters of type HttpResponse Modifier and Type Method Description void
AsyncClientExchangeHandler. consumeInformation(HttpResponse response, HttpContext context)
Triggered to signal receipt of an intermediate (1xx) HTTP response.void
AsyncPushConsumer. consumePromise(HttpRequest promise, HttpResponse response, EntityDetails entityDetails, HttpContext context)
Triggered to signal receipt of a request message head used as a promise and the corresponding pushed response.void
AsyncClientExchangeHandler. consumeResponse(HttpResponse response, EntityDetails entityDetails, HttpContext context)
Triggered to signal receipt of a response message head.void
AsyncResponseConsumer. consumeResponse(HttpResponse response, EntityDetails entityDetails, HttpContext context, FutureCallback<T> resultCallback)
Triggered to signal receipt of a response message head.void
AsyncResponseConsumer. informationResponse(HttpResponse response, HttpContext context)
Triggered to signal receipt of an intermediate (1xx) HTTP response.void
AsyncFilterChain.ResponseTrigger. sendInformation(HttpResponse response)
Sends an intermediate informational HTTP response to the client.void
AsyncServerRequestHandler.ResponseTrigger. sendInformation(HttpResponse response, HttpContext context)
Sends an intermediate informational HTTP response to the client.void
ResponseChannel. sendInformation(HttpResponse response, HttpContext context)
Sends an intermediate informational HTTP response through this channel.void
ResponseChannel. sendResponse(HttpResponse response, EntityDetails entityDetails, HttpContext context)
Sends a final HTTP response through this channel.void
AsyncFilterChain.ResponseTrigger. submitResponse(HttpResponse response, AsyncEntityProducer entityProducer)
Sends a final HTTP response to the client. -
Uses of HttpResponse in org.apache.hc.core5.http.nio.support
Fields in org.apache.hc.core5.http.nio.support declared as HttpResponse Modifier and Type Field Description private HttpResponse
BasicPushProducer. response
private HttpResponse
BasicResponseProducer. response
Methods in org.apache.hc.core5.http.nio.support with parameters of type HttpResponse Modifier and Type Method Description protected abstract T
AbstractAsyncResponseConsumer. buildResult(HttpResponse response, E entity, ContentType contentType)
Triggered to generate object that represents a result of response message processing.void
BasicClientExchangeHandler. consumeInformation(HttpResponse response, HttpContext httpContext)
void
AbstractAsyncPushHandler. consumePromise(HttpRequest promise, HttpResponse response, EntityDetails entityDetails, HttpContext httpContext)
void
AbstractAsyncResponseConsumer. consumeResponse(HttpResponse response, EntityDetails entityDetails, HttpContext httpContext, FutureCallback<T> resultCallback)
void
BasicClientExchangeHandler. consumeResponse(HttpResponse response, EntityDetails entityDetails, HttpContext httpContext)
void
BasicResponseConsumer. consumeResponse(HttpResponse response, EntityDetails entityDetails, HttpContext httpContext, FutureCallback<Message<HttpResponse,T>> resultCallback)
protected AsyncEntityProducer
AbstractAsyncServerAuthFilter. generateResponseContent(HttpResponse unauthorized)
Generates response body for UNAUTHORIZED response.protected AsyncEntityProducer
AsyncServerExpectationFilter. generateResponseContent(HttpResponse expectationFailed)
void
BasicResponseConsumer. informationResponse(HttpResponse response, HttpContext httpContext)
Method parameters in org.apache.hc.core5.http.nio.support with type arguments of type HttpResponse Modifier and Type Method Description void
BasicResponseConsumer. consumeResponse(HttpResponse response, EntityDetails entityDetails, HttpContext httpContext, FutureCallback<Message<HttpResponse,T>> resultCallback)
Constructors in org.apache.hc.core5.http.nio.support with parameters of type HttpResponse Constructor Description BasicPushProducer(HttpResponse response, AsyncEntityProducer dataProducer)
BasicResponseProducer(HttpResponse response)
BasicResponseProducer(HttpResponse response, java.lang.String message)
BasicResponseProducer(HttpResponse response, java.lang.String message, ContentType contentType)
BasicResponseProducer(HttpResponse response, AsyncEntityProducer dataProducer)
ImmediateResponseExchangeHandler(HttpResponse response, java.lang.String message)
-
Uses of HttpResponse in org.apache.hc.core5.http.nio.support.classic
Methods in org.apache.hc.core5.http.nio.support.classic with parameters of type HttpResponse Modifier and Type Method Description protected abstract void
AbstractClassicServerExchangeHandler. handle(HttpRequest request, java.io.InputStream requestStream, HttpResponse response, java.io.OutputStream responseStream, HttpContext context)
Handles an incoming request optionally reading its entity content form the given input stream and generates a response optionally writing out its entity content into the given output stream. -
Uses of HttpResponse in org.apache.hc.core5.http.protocol
Methods in org.apache.hc.core5.http.protocol that return HttpResponse Modifier and Type Method Description HttpResponse
HttpCoreContext. getResponse()
Methods in org.apache.hc.core5.http.protocol with parameters of type HttpResponse Modifier and Type Method Description void
DefaultHttpProcessor. process(HttpResponse response, EntityDetails entity, HttpContext context)
void
ResponseConnControl. process(HttpResponse response, EntityDetails entity, HttpContext context)
void
ResponseContent. process(HttpResponse response, EntityDetails entity, HttpContext context)
Processes the response (possibly updating or inserting) Content-Length and Transfer-Encoding headers.void
ResponseDate. process(HttpResponse response, EntityDetails entity, HttpContext context)
void
ResponseServer. process(HttpResponse response, EntityDetails entity, HttpContext context)
-
Uses of HttpResponse in org.apache.hc.core5.http.support
Methods in org.apache.hc.core5.http.support with parameters of type HttpResponse Modifier and Type Method Description static BasicResponseBuilder
BasicResponseBuilder. copy(HttpResponse response)
-
Uses of HttpResponse in org.apache.hc.core5.http2.impl
Methods in org.apache.hc.core5.http2.impl that return HttpResponse Modifier and Type Method Description HttpResponse
DefaultH2ResponseConverter. convert(java.util.List<Header> headers)
Methods in org.apache.hc.core5.http2.impl with parameters of type HttpResponse Modifier and Type Method Description java.util.List<Header>
DefaultH2ResponseConverter. convert(HttpResponse message)
-
Uses of HttpResponse in org.apache.hc.core5.http2.impl.nio
Methods in org.apache.hc.core5.http2.impl.nio with parameters of type HttpResponse Modifier and Type Method Description private void
ServerH2StreamHandler. commitInformation(HttpResponse response)
private void
ServerPushH2StreamHandler. commitInformation(HttpResponse response)
private void
ServerH2StreamHandler. commitResponse(HttpResponse response, EntityDetails responseEntityDetails)
private void
ServerPushH2StreamHandler. commitResponse(HttpResponse response, EntityDetails responseEntityDetails)
void
NoopAsyncPushHandler. consumePromise(HttpRequest promise, HttpResponse response, EntityDetails entityDetails, HttpContext context)
-
Uses of HttpResponse in org.apache.hc.core5.http2.protocol
Methods in org.apache.hc.core5.http2.protocol with parameters of type HttpResponse Modifier and Type Method Description void
H2ResponseConnControl. process(HttpResponse response, EntityDetails entity, HttpContext context)
void
H2ResponseContent. process(HttpResponse response, EntityDetails entity, HttpContext context)
-
Uses of HttpResponse in org.apache.hc.core5.reactive
Fields in org.apache.hc.core5.reactive declared as HttpResponse Modifier and Type Field Description private HttpResponse
ReactiveResponseConsumer. informationResponse
Fields in org.apache.hc.core5.reactive with type parameters of type HttpResponse Modifier and Type Field Description private BasicFuture<Message<HttpResponse,org.reactivestreams.Publisher<java.nio.ByteBuffer>>>
ReactiveResponseConsumer. responseFuture
Methods in org.apache.hc.core5.reactive that return HttpResponse Modifier and Type Method Description HttpResponse
ReactiveResponseConsumer. getInformationResponse()
Returns the intermediate (1xx) HTTP response if one was received.Methods in org.apache.hc.core5.reactive that return types with arguments of type HttpResponse Modifier and Type Method Description java.util.concurrent.Future<Message<HttpResponse,org.reactivestreams.Publisher<java.nio.ByteBuffer>>>
ReactiveResponseConsumer. getResponseFuture()
Methods in org.apache.hc.core5.reactive with parameters of type HttpResponse Modifier and Type Method Description void
ReactiveResponseConsumer. consumeResponse(HttpResponse response, EntityDetails entityDetails, HttpContext httpContext, FutureCallback<java.lang.Void> resultCallback)
void
ReactiveResponseConsumer. informationResponse(HttpResponse response, HttpContext httpContext)
Constructor parameters in org.apache.hc.core5.reactive with type arguments of type HttpResponse Constructor Description ReactiveResponseConsumer(FutureCallback<Message<HttpResponse,org.reactivestreams.Publisher<java.nio.ByteBuffer>>> responseCallback)
Creates aReactiveResponseConsumer
that will call back the suppliedFutureCallback
with a streamable response. -
Uses of HttpResponse in org.apache.hc.core5.testing.classic
Methods in org.apache.hc.core5.testing.classic with parameters of type HttpResponse Modifier and Type Method Description void
LoggingHttp1StreamListener. onResponseHead(HttpConnection connection, HttpResponse response)
-
Uses of HttpResponse in org.apache.hc.core5.testing.nio
Fields in org.apache.hc.core5.testing.nio with type parameters of type HttpResponse Modifier and Type Field Description private NHttpMessageParserFactory<HttpResponse>
InternalClientHttp1EventHandlerFactory. responseParserFactory
private NHttpMessageWriterFactory<HttpResponse>
InternalServerHttp1EventHandlerFactory. responseWriterFactory
Methods in org.apache.hc.core5.testing.nio with parameters of type HttpResponse Modifier and Type Method Description void
LoggingHttp1StreamListener. onResponseHead(HttpConnection connection, HttpResponse response)
Method parameters in org.apache.hc.core5.testing.nio with type arguments of type HttpResponse Modifier and Type Method Description protected ClientHttp1StreamDuplexer
InternalClientHttp1EventHandlerFactory. createClientHttp1StreamDuplexer(ProtocolIOSession ioSession, HttpProcessor httpProcessor, Http1Config http1Config, CharCodingConfig charCodingConfig, ConnectionReuseStrategy connectionReuseStrategy, NHttpMessageParser<HttpResponse> incomingMessageParser, NHttpMessageWriter<HttpRequest> outgoingMessageWriter, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, Http1StreamListener streamListener)
protected ServerHttp1StreamDuplexer
InternalServerHttp1EventHandlerFactory. createServerHttp1StreamDuplexer(ProtocolIOSession ioSession, HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, Http1Config http1Config, CharCodingConfig charCodingConfig, ConnectionReuseStrategy connectionReuseStrategy, NHttpMessageParser<HttpRequest> incomingMessageParser, NHttpMessageWriter<HttpResponse> outgoingMessageWriter, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, Http1StreamListener streamListener)
-