Uses of Interface
org.apache.http.HttpResponse
-
Packages that use HttpResponse Package Description org.apache.http Core HTTP component APIs and primitives.org.apache.http.impl Default implementations of HTTP connections for synchronous, blocking communication.org.apache.http.impl.io Default implementations of message parses and writers for synchronous, blocking communication.org.apache.http.impl.nio Default implementations of HTTP connections for asynchronous, even driven communication.org.apache.http.impl.nio.codecs Default implementations of message parses and writers for asynchronous, even driven communication.org.apache.http.impl.nio.pool Default implementations of client side connection pools for asynchronous, even driven communication.org.apache.http.message Core HTTP message components, message element parser and writer APIs and their default implementations.org.apache.http.nio Core HTTP component APIs and primitives for asynchronous, event driven communication.org.apache.http.nio.protocol Core HTTP protocol execution framework and HTTP protocol handlers for asynchronous, event driven communication.org.apache.http.protocol Core HTTP protocol execution framework and HTTP protocol handlers for synchronous, blocking communication.org.apache.http.util Core utility classes. -
-
Uses of HttpResponse in org.apache.http
Methods in org.apache.http that return HttpResponse Modifier and Type Method Description HttpResponseHttpResponseFactory. newHttpResponse(ProtocolVersion ver, int status, HttpContext context)Creates a new response from status line elements.HttpResponseHttpResponseFactory. newHttpResponse(StatusLine statusline, HttpContext context)Creates a new response from a status line.HttpResponseHttpClientConnection. receiveResponseHeader()Receives the request line and headers of the next response available from this connection.Methods in org.apache.http with parameters of type HttpResponse Modifier and Type Method Description booleanConnectionReuseStrategy. keepAlive(HttpResponse response, HttpContext context)Decides whether a connection can be kept open after a request.voidHttpResponseInterceptor. process(HttpResponse response, HttpContext context)Processes a response.voidHttpClientConnection. receiveResponseEntity(HttpResponse response)Receives the next response entity available from this connection and attaches it to an existing HttpResponse object.voidHttpServerConnection. sendResponseEntity(HttpResponse response)Sends the response entity of a response over this connection.voidHttpServerConnection. sendResponseHeader(HttpResponse response)Sends the response line and headers of a response over this connection. -
Uses of HttpResponse in org.apache.http.impl
Fields in org.apache.http.impl with type parameters of type HttpResponse Modifier and Type Field Description private HttpMessageParser<HttpResponse>AbstractHttpClientConnection. responseParserDeprecated.private HttpMessageParser<HttpResponse>DefaultBHttpClientConnection. responseParserprivate HttpMessageParserFactory<HttpResponse>DefaultBHttpClientConnectionFactory. responseParserFactoryprivate HttpMessageWriter<HttpResponse>AbstractHttpServerConnection. responseWriterDeprecated.private HttpMessageWriter<HttpResponse>DefaultBHttpServerConnection. responseWriterprivate HttpMessageWriterFactory<HttpResponse>DefaultBHttpServerConnectionFactory. responseWriterFactoryMethods in org.apache.http.impl that return HttpResponse Modifier and Type Method Description HttpResponseDefaultHttpResponseFactory. newHttpResponse(ProtocolVersion ver, int status, HttpContext context)HttpResponseDefaultHttpResponseFactory. newHttpResponse(StatusLine statusline, HttpContext context)HttpResponseAbstractHttpClientConnection. receiveResponseHeader()Deprecated.HttpResponseDefaultBHttpClientConnection. receiveResponseHeader()Methods in org.apache.http.impl that return types with arguments of type HttpResponse Modifier and Type Method Description protected HttpMessageParser<HttpResponse>AbstractHttpClientConnection. createResponseParser(SessionInputBuffer buffer, HttpResponseFactory responseFactory, HttpParams params)Deprecated.Creates an instance ofHttpMessageParserto be used for parsing HTTP responses received over this connection.protected HttpMessageWriter<HttpResponse>AbstractHttpServerConnection. createResponseWriter(SessionOutputBuffer buffer, HttpParams params)Deprecated.Creates an instance ofHttpMessageWriterto be used for writing out HTTP responses sent over this connection.Methods in org.apache.http.impl with parameters of type HttpResponse Modifier and Type Method Description private booleanDefaultConnectionReuseStrategy. canResponseHaveBody(HttpRequest request, HttpResponse response)booleanDefaultConnectionReuseStrategy. keepAlive(HttpResponse response, HttpContext context)booleanNoConnectionReuseStrategy. keepAlive(HttpResponse response, HttpContext context)protected voidDefaultBHttpClientConnection. onResponseReceived(HttpResponse response)protected voidDefaultBHttpServerConnection. onResponseSubmitted(HttpResponse response)voidAbstractHttpClientConnection. receiveResponseEntity(HttpResponse response)Deprecated.voidDefaultBHttpClientConnection. receiveResponseEntity(HttpResponse response)voidAbstractHttpServerConnection. sendResponseEntity(HttpResponse response)Deprecated.voidDefaultBHttpServerConnection. sendResponseEntity(HttpResponse response)voidAbstractHttpServerConnection. sendResponseHeader(HttpResponse response)Deprecated.voidDefaultBHttpServerConnection. sendResponseHeader(HttpResponse response)Constructor parameters in org.apache.http.impl with type arguments of type HttpResponse Constructor Description DefaultBHttpClientConnection(int bufferSize, int fragmentSizeHint, java.nio.charset.CharsetDecoder charDecoder, java.nio.charset.CharsetEncoder charEncoder, MessageConstraints constraints, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)Creates new instance of DefaultBHttpClientConnection.DefaultBHttpClientConnectionFactory(ConnectionConfig cconfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)DefaultBHttpClientConnectionFactory(ConnectionConfig cconfig, HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)DefaultBHttpServerConnection(int bufferSize, int fragmentSizeHint, java.nio.charset.CharsetDecoder charDecoder, java.nio.charset.CharsetEncoder charEncoder, MessageConstraints constraints, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageParserFactory<HttpRequest> requestParserFactory, HttpMessageWriterFactory<HttpResponse> responseWriterFactory)Creates new instance of DefaultBHttpServerConnection.DefaultBHttpServerConnectionFactory(ConnectionConfig cconfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageParserFactory<HttpRequest> requestParserFactory, HttpMessageWriterFactory<HttpResponse> responseWriterFactory)DefaultBHttpServerConnectionFactory(ConnectionConfig cconfig, HttpMessageParserFactory<HttpRequest> requestParserFactory, HttpMessageWriterFactory<HttpResponse> responseWriterFactory) -
Uses of HttpResponse in org.apache.http.impl.io
Methods in org.apache.http.impl.io that return HttpResponse Modifier and Type Method Description protected HttpResponseDefaultHttpResponseParser. parseHead(SessionInputBuffer sessionBuffer)Methods in org.apache.http.impl.io that return types with arguments of type HttpResponse Modifier and Type Method Description HttpMessageParser<HttpResponse>DefaultHttpResponseParserFactory. create(SessionInputBuffer buffer, MessageConstraints constraints)HttpMessageWriter<HttpResponse>DefaultHttpResponseWriterFactory. create(SessionOutputBuffer buffer)Methods in org.apache.http.impl.io with parameters of type HttpResponse Modifier and Type Method Description protected voidDefaultHttpResponseWriter. writeHeadLine(HttpResponse message)protected voidHttpResponseWriter. writeHeadLine(HttpResponse message)Deprecated. -
Uses of HttpResponse in org.apache.http.impl.nio
Fields in org.apache.http.impl.nio declared as HttpResponse Modifier and Type Field Description protected HttpResponseNHttpConnectionBase. responseFields in org.apache.http.impl.nio with type parameters of type HttpResponse Modifier and Type Field Description protected NHttpMessageParser<HttpResponse>DefaultNHttpClientConnection. responseParserprivate NHttpMessageParserFactory<HttpResponse>DefaultNHttpClientConnectionFactory. responseParserFactoryprivate NHttpMessageParserFactory<HttpResponse>SSLNHttpClientConnectionFactory. responseParserFactoryprotected NHttpMessageWriter<HttpResponse>DefaultNHttpServerConnection. responseWriterprivate NHttpMessageWriterFactory<HttpResponse>DefaultNHttpServerConnectionFactory. responseWriterFactoryprivate NHttpMessageWriterFactory<HttpResponse>SSLNHttpServerConnectionFactory. responseWriterFactoryMethods in org.apache.http.impl.nio that return HttpResponse Modifier and Type Method Description HttpResponseNHttpConnectionBase. getHttpResponse()Methods in org.apache.http.impl.nio that return types with arguments of type HttpResponse Modifier and Type Method Description protected NHttpMessageParser<HttpResponse>DefaultNHttpClientConnection. createResponseParser(SessionInputBuffer buffer, HttpResponseFactory responseFactory, HttpParams params)Deprecated.(4.3) use constructor.protected NHttpMessageWriter<HttpResponse>DefaultNHttpServerConnection. createResponseWriter(SessionOutputBuffer buffer, HttpParams params)Deprecated.(4.3) use constructor.Methods in org.apache.http.impl.nio with parameters of type HttpResponse Modifier and Type Method Description protected voidDefaultNHttpClientConnection. onResponseReceived(HttpResponse response)protected voidDefaultNHttpServerConnection. onResponseSubmitted(HttpResponse response)voidDefaultNHttpServerConnection. submitResponse(HttpResponse response) -
Uses of HttpResponse in org.apache.http.impl.nio.codecs
Methods in org.apache.http.impl.nio.codecs that return HttpResponse Modifier and Type Method Description protected HttpResponseDefaultHttpResponseParser. createMessage(CharArrayBuffer buffer)Methods in org.apache.http.impl.nio.codecs that return types with arguments of type HttpResponse Modifier and Type Method Description NHttpMessageParser<HttpResponse>DefaultHttpResponseParserFactory. create(SessionInputBuffer buffer, MessageConstraints constraints)NHttpMessageWriter<HttpResponse>DefaultHttpResponseWriterFactory. create(SessionOutputBuffer buffer)Methods in org.apache.http.impl.nio.codecs with parameters of type HttpResponse Modifier and Type Method Description protected voidDefaultHttpResponseWriter. writeHeadLine(HttpResponse message) -
Uses of HttpResponse in org.apache.http.impl.nio.pool
Constructor parameters in org.apache.http.impl.nio.pool with type arguments of type HttpResponse Constructor Description BasicNIOConnFactory(javax.net.ssl.SSLContext sslContext, SSLSetupHandler sslHandler, NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ByteBufferAllocator allocator, ConnectionConfig config) -
Uses of HttpResponse in org.apache.http.message
Classes in org.apache.http.message that implement HttpResponse Modifier and Type Class Description classBasicHttpResponseBasic implementation ofHttpResponse. -
Uses of HttpResponse in org.apache.http.nio
Methods in org.apache.http.nio that return HttpResponse Modifier and Type Method Description HttpResponseNHttpConnection. getHttpResponse()Returns the current HTTP response if one is being received / transmitted.Methods in org.apache.http.nio with parameters of type HttpResponse Modifier and Type Method Description voidNHttpServerConnection. submitResponse(HttpResponse response)Submits {link @HttpResponse} to be sent to the client. -
Uses of HttpResponse in org.apache.http.nio.protocol
Fields in org.apache.http.nio.protocol declared as HttpResponse Modifier and Type Field Description private HttpResponseAsyncNHttpClientHandler.ClientConnState. responseprivate HttpResponseAsyncNHttpServiceHandler.ServerConnState. responseprivate HttpResponseBasicAsyncResponseConsumer. responseprivate HttpResponseBasicAsyncResponseProducer. responseprivate HttpResponseErrorResponseProducer. responseprivate HttpResponseHttpAsyncRequestExecutor.State. responseprivate HttpResponseHttpAsyncService.HttpAsyncExchangeImpl. responseprivate HttpResponseHttpAsyncService.Outgoing. responseprivate HttpResponseThrottlingHttpClientHandler.ClientConnState. responseprivate HttpResponseThrottlingHttpServiceHandler.ServerConnState. responseMethods in org.apache.http.nio.protocol that return HttpResponse Modifier and Type Method Description protected HttpResponseBasicAsyncResponseConsumer. buildResult(HttpContext context)protected HttpResponseHttpAsyncService. createHttpResponse(int status, HttpContext context)HttpResponseBasicAsyncResponseProducer. generateResponse()HttpResponseErrorResponseProducer. generateResponse()HttpResponseHttpAsyncResponseProducer. generateResponse()Invoked to generate a HTTP response message head.HttpResponseAsyncNHttpClientHandler.ClientConnState. getResponse()HttpResponseAsyncNHttpServiceHandler.ServerConnState. getResponse()HttpResponseHttpAsyncExchange. getResponse()Returns the default HTTP response message.HttpResponseHttpAsyncRequestExecutor.State. getResponse()HttpResponseHttpAsyncService.HttpAsyncExchangeImpl. getResponse()HttpResponseHttpAsyncService.Outgoing. getResponse()HttpResponseThrottlingHttpClientHandler.ClientConnState. getResponse()HttpResponseThrottlingHttpServiceHandler.ServerConnState. getResponse()Methods in org.apache.http.nio.protocol with parameters of type HttpResponse Modifier and Type Method Description private booleanHttpAsyncRequestExecutor. canResponseHaveBody(HttpRequest request, HttpResponse response)private booleanHttpAsyncService. canResponseHaveBody(HttpRequest request, HttpResponse response)protected booleanNHttpHandlerBase. canResponseHaveBody(HttpRequest request, HttpResponse response)Deprecated.voidBufferingHttpServiceHandler.RequestHandlerAdaptor. handle(HttpRequest request, HttpResponse response, HttpContext context)voidNHttpRequestHandler. handle(HttpRequest request, HttpResponse response, NHttpResponseTrigger trigger, HttpContext context)Deprecated.Initiates processing of the request.voidSimpleNHttpRequestHandler. handle(HttpRequest request, HttpResponse response, NHttpResponseTrigger trigger, HttpContext context)Deprecated.abstract voidSimpleNHttpRequestHandler. handle(HttpRequest request, HttpResponse response, HttpContext context)Deprecated.private voidAsyncNHttpServiceHandler. handleException(HttpException ex, HttpResponse response)Deprecated.private voidThrottlingHttpServiceHandler. handleException(HttpException ex, HttpResponse response)Deprecated.voidBufferingHttpClientHandler.ExecutionHandlerAdaptor. handleResponse(HttpResponse response, HttpContext context)voidHttpRequestExecutionHandler. handleResponse(HttpResponse response, HttpContext context)Deprecated.Triggered when an HTTP response is ready to be processed.voidNHttpRequestExecutionHandler. handleResponse(HttpResponse response, HttpContext context)Deprecated.Triggered when an HTTP response is ready to be processed.private voidThrottlingHttpClientHandler. handleResponse(HttpResponse response, ThrottlingHttpClientHandler.ClientConnState connState, NHttpClientConnection conn)Deprecated.protected abstract voidAbstractAsyncResponseConsumer. onResponseReceived(HttpResponse response)Invoked when a HTTP response message is received.protected voidBasicAsyncResponseConsumer. onResponseReceived(HttpResponse response)protected voidAsyncNHttpServiceHandler. responseComplete(HttpResponse response, HttpContext context)Deprecated.Signals that this response has been fully sent.ConsumingNHttpEntityBufferingHttpClientHandler.ExecutionHandlerAdaptor. responseEntity(HttpResponse response, HttpContext context)ConsumingNHttpEntityNHttpRequestExecutionHandler. responseEntity(HttpResponse response, HttpContext context)Deprecated.Triggered when a response is received with an entity.voidAbstractAsyncResponseConsumer. responseReceived(HttpResponse response)voidBasicAsyncClientExchangeHandler. responseReceived(HttpResponse response)voidBasicAsyncRequestExecutionHandler. responseReceived(HttpResponse response)Deprecated.voidHttpAsyncClientExchangeHandler. responseReceived(HttpResponse response)Invoked when a HTTP response message is received.voidHttpAsyncResponseConsumer. responseReceived(HttpResponse response)Invoked when a HTTP response message is received.voidPipeliningClientExchangeHandler. responseReceived(HttpResponse response)private voidAsyncNHttpServiceHandler. sendResponse(NHttpServerConnection conn, HttpRequest request, HttpResponse response)Deprecated.voidAsyncNHttpClientHandler.ClientConnState. setResponse(HttpResponse response)voidAsyncNHttpServiceHandler.ServerConnState. setResponse(HttpResponse response)voidHttpAsyncRequestExecutor.State. setResponse(HttpResponse response)voidThrottlingHttpClientHandler.ClientConnState. setResponse(HttpResponse response)voidThrottlingHttpServiceHandler.ServerConnState. setResponse(HttpResponse response)voidAsyncNHttpServiceHandler.ResponseTriggerImpl. submitResponse(HttpResponse response)voidNHttpResponseTrigger. submitResponse(HttpResponse response)Deprecated.Submits a response to be sent back to the client as a result of processing of the request.Constructors in org.apache.http.nio.protocol with parameters of type HttpResponse Constructor Description BasicAsyncResponseProducer(HttpResponse response)Creates a producer that can be used to transmit the given response message.BasicAsyncResponseProducer(HttpResponse response, HttpAsyncContentProducer producer)Creates a producer that can be used to transmit the given response message.ErrorResponseProducer(HttpResponse response, HttpEntity entity, boolean keepAlive)HttpAsyncExchangeImpl(HttpRequest request, HttpResponse response, HttpAsyncService.State state, NHttpServerConnection conn, HttpContext context)Outgoing(HttpRequest request, HttpResponse response, HttpAsyncResponseProducer producer, HttpContext context) -
Uses of HttpResponse in org.apache.http.protocol
Methods in org.apache.http.protocol that return HttpResponse Modifier and Type Method Description protected HttpResponseHttpRequestExecutor. doReceiveResponse(HttpRequest request, HttpClientConnection conn, HttpContext context)Waits for and receives a response.protected HttpResponseHttpRequestExecutor. doSendRequest(HttpRequest request, HttpClientConnection conn, HttpContext context)Send the given request over the given connection.HttpResponseHttpRequestExecutor. execute(HttpRequest request, HttpClientConnection conn, HttpContext context)Sends the request and obtain a response.HttpResponseHttpCoreContext. getResponse()Methods in org.apache.http.protocol with parameters of type HttpResponse Modifier and Type Method Description protected booleanHttpRequestExecutor. canResponseHaveBody(HttpRequest request, HttpResponse response)Decide whether a response comes with an entity.private booleanHttpService. canResponseHaveBody(HttpRequest request, HttpResponse response)protected voidHttpService. doService(HttpRequest request, HttpResponse response, HttpContext context)The default implementation of this method attempts to resolve anHttpRequestHandlerfor the request URI of the given request and, if found, executes itsHttpRequestHandler.handle(HttpRequest, HttpResponse, HttpContext)method.voidHttpRequestHandler. handle(HttpRequest request, HttpResponse response, HttpContext context)Handles the request and produces a response to be sent back to the client.protected voidHttpService. handleException(HttpException ex, HttpResponse response)Handles the given exception and generates an HTTP response to be sent back to the client to inform about the exceptional condition encountered in the course of the request processing.voidHttpRequestExecutor. postProcess(HttpResponse response, HttpProcessor processor, HttpContext context)Post-processes the given response using the given protocol processor and completes the process of request execution.voidBasicHttpProcessor. process(HttpResponse response, HttpContext context)Deprecated.voidImmutableHttpProcessor. process(HttpResponse response, HttpContext context)voidResponseConnControl. process(HttpResponse response, HttpContext context)voidResponseContent. process(HttpResponse response, HttpContext context)Processes the response (possibly updating or inserting) Content-Length and Transfer-Encoding headers.voidResponseDate. process(HttpResponse response, HttpContext context)voidResponseServer. process(HttpResponse response, HttpContext context)voidHttpExpectationVerifier. verify(HttpRequest request, HttpResponse response, HttpContext context)Verifies whether the given request meets the server's expectations. -
Uses of HttpResponse in org.apache.http.util
Methods in org.apache.http.util with parameters of type HttpResponse Modifier and Type Method Description static voidEntityUtils. updateEntity(HttpResponse response, HttpEntity entity)Updates an entity in a response by first consuming an existing entity, then setting the new one.
-