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.
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
HttpResponseFactory.newHttpResponse(ProtocolVersion ver,
int status,
HttpContext context)
Creates a new response from status line elements.
|
HttpResponse |
HttpResponseFactory.newHttpResponse(StatusLine statusline,
HttpContext context)
Creates a new response from a status line.
|
HttpResponse |
HttpClientConnection.receiveResponseHeader()
Receives the request line and headers of the next response available from
this connection.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ConnectionReuseStrategy.keepAlive(HttpResponse response,
HttpContext context)
Decides whether a connection can be kept open after a request.
|
void |
HttpResponseInterceptor.process(HttpResponse response,
HttpContext context)
Processes a response.
|
void |
HttpClientConnection.receiveResponseEntity(HttpResponse response)
Receives the next response entity available from this connection and
attaches it to an existing HttpResponse object.
|
void |
HttpServerConnection.sendResponseEntity(HttpResponse response)
Sends the response entity of a response over this connection.
|
void |
HttpServerConnection.sendResponseHeader(HttpResponse response)
Sends the response line and headers of a response over this connection.
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
DefaultHttpResponseFactory.newHttpResponse(ProtocolVersion ver,
int status,
HttpContext context) |
HttpResponse |
DefaultHttpResponseFactory.newHttpResponse(StatusLine statusline,
HttpContext context) |
HttpResponse |
AbstractHttpClientConnection.receiveResponseHeader()
Deprecated.
|
HttpResponse |
DefaultBHttpClientConnection.receiveResponseHeader() |
Modifier and Type | Method and Description |
---|---|
protected HttpMessageParser<HttpResponse> |
AbstractHttpClientConnection.createResponseParser(SessionInputBuffer buffer,
HttpResponseFactory responseFactory,
HttpParams params)
Deprecated.
Creates an instance of
HttpMessageParser to be used for parsing
HTTP responses received over this connection. |
protected HttpMessageWriter<HttpResponse> |
AbstractHttpServerConnection.createResponseWriter(SessionOutputBuffer buffer,
HttpParams params)
Deprecated.
Creates an instance of
HttpMessageWriter to be used for
writing out HTTP responses sent over this connection. |
Modifier and Type | Method and Description |
---|---|
boolean |
NoConnectionReuseStrategy.keepAlive(HttpResponse response,
HttpContext context) |
boolean |
DefaultConnectionReuseStrategy.keepAlive(HttpResponse response,
HttpContext context) |
protected void |
DefaultBHttpClientConnection.onResponseReceived(HttpResponse response) |
protected void |
DefaultBHttpServerConnection.onResponseSubmitted(HttpResponse response) |
void |
AbstractHttpClientConnection.receiveResponseEntity(HttpResponse response)
Deprecated.
|
void |
DefaultBHttpClientConnection.receiveResponseEntity(HttpResponse response) |
void |
DefaultBHttpServerConnection.sendResponseEntity(HttpResponse response) |
void |
AbstractHttpServerConnection.sendResponseEntity(HttpResponse response)
Deprecated.
|
void |
DefaultBHttpServerConnection.sendResponseHeader(HttpResponse response) |
void |
AbstractHttpServerConnection.sendResponseHeader(HttpResponse response)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected HttpResponse |
DefaultHttpResponseParser.parseHead(SessionInputBuffer sessionBuffer) |
Modifier and Type | Method and Description |
---|---|
HttpMessageParser<HttpResponse> |
DefaultHttpResponseParserFactory.create(SessionInputBuffer buffer,
MessageConstraints constraints) |
HttpMessageWriter<HttpResponse> |
DefaultHttpResponseWriterFactory.create(SessionOutputBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
protected void |
HttpResponseWriter.writeHeadLine(HttpResponse message)
Deprecated.
|
protected void |
DefaultHttpResponseWriter.writeHeadLine(HttpResponse message) |
Modifier and Type | Field and Description |
---|---|
protected HttpResponse |
NHttpConnectionBase.response |
Modifier and Type | Field and Description |
---|---|
protected NHttpMessageParser<HttpResponse> |
DefaultNHttpClientConnection.responseParser |
protected NHttpMessageWriter<HttpResponse> |
DefaultNHttpServerConnection.responseWriter |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
NHttpConnectionBase.getHttpResponse() |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultNHttpClientConnection.onResponseReceived(HttpResponse response) |
protected void |
DefaultNHttpServerConnection.onResponseSubmitted(HttpResponse response) |
void |
DefaultNHttpServerConnection.submitResponse(HttpResponse response) |
Modifier and Type | Method and Description |
---|---|
protected HttpResponse |
DefaultHttpResponseParser.createMessage(CharArrayBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
NHttpMessageParser<HttpResponse> |
DefaultHttpResponseParserFactory.create(SessionInputBuffer buffer,
MessageConstraints constraints) |
NHttpMessageWriter<HttpResponse> |
DefaultHttpResponseWriterFactory.create(SessionOutputBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultHttpResponseWriter.writeHeadLine(HttpResponse message) |
Constructor and Description |
---|
BasicNIOConnFactory(SSLContext sslcontext,
SSLSetupHandler sslHandler,
NHttpMessageParserFactory<HttpResponse> responseParserFactory,
NHttpMessageWriterFactory<HttpRequest> requestWriterFactory,
ByteBufferAllocator allocator,
ConnectionConfig config) |
Modifier and Type | Class and Description |
---|---|
class |
BasicHttpResponse
Basic implementation of
HttpResponse . |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
NHttpConnection.getHttpResponse()
Returns the current HTTP response if one is being received / transmitted.
|
Modifier and Type | Method and Description |
---|---|
void |
NHttpServerConnection.submitResponse(HttpResponse response)
Submits {link @HttpResponse} to be sent to the client.
|
Modifier and Type | Method and Description |
---|---|
protected HttpResponse |
BasicAsyncResponseConsumer.buildResult(HttpContext context) |
HttpResponse |
BasicAsyncResponseProducer.generateResponse() |
HttpResponse |
HttpAsyncResponseProducer.generateResponse()
Invoked to generate a HTTP response message head.
|
HttpResponse |
HttpAsyncExchange.getResponse()
Returns the default HTTP response message.
|
HttpResponse |
AsyncNHttpServiceHandler.ServerConnState.getResponse() |
HttpResponse |
AsyncNHttpClientHandler.ClientConnState.getResponse() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
NHttpHandlerBase.canResponseHaveBody(HttpRequest request,
HttpResponse response)
Deprecated.
|
abstract void |
SimpleNHttpRequestHandler.handle(HttpRequest request,
HttpResponse response,
HttpContext context)
Deprecated.
|
void |
SimpleNHttpRequestHandler.handle(HttpRequest request,
HttpResponse response,
NHttpResponseTrigger trigger,
HttpContext context)
Deprecated.
|
void |
NHttpRequestHandler.handle(HttpRequest request,
HttpResponse response,
NHttpResponseTrigger trigger,
HttpContext context)
Deprecated.
Initiates processing of the request.
|
void |
NHttpRequestExecutionHandler.handleResponse(HttpResponse response,
HttpContext context)
Deprecated.
Triggered when an HTTP response is ready to be processed.
|
void |
HttpRequestExecutionHandler.handleResponse(HttpResponse response,
HttpContext context)
Deprecated.
Triggered when an HTTP response is ready to be processed.
|
protected abstract void |
AbstractAsyncResponseConsumer.onResponseReceived(HttpResponse response)
Invoked when a HTTP response message is received.
|
protected void |
BasicAsyncResponseConsumer.onResponseReceived(HttpResponse response) |
protected void |
AsyncNHttpServiceHandler.responseComplete(HttpResponse response,
HttpContext context)
Deprecated.
Signals that this response has been fully sent.
|
ConsumingNHttpEntity |
NHttpRequestExecutionHandler.responseEntity(HttpResponse response,
HttpContext context)
Deprecated.
Triggered when a response is received with an entity.
|
void |
HttpAsyncResponseConsumer.responseReceived(HttpResponse response)
Invoked when a HTTP response message is received.
|
void |
HttpAsyncClientExchangeHandler.responseReceived(HttpResponse response)
Invoked when a HTTP response message is received.
|
void |
PipeliningClientExchangeHandler.responseReceived(HttpResponse response) |
void |
BasicAsyncRequestExecutionHandler.responseReceived(HttpResponse response)
Deprecated.
|
void |
AbstractAsyncResponseConsumer.responseReceived(HttpResponse response)
|
void |
BasicAsyncClientExchangeHandler.responseReceived(HttpResponse response) |
void |
AsyncNHttpServiceHandler.ServerConnState.setResponse(HttpResponse response) |
void |
AsyncNHttpClientHandler.ClientConnState.setResponse(HttpResponse response) |
void |
NHttpResponseTrigger.submitResponse(HttpResponse response)
Deprecated.
Submits a response to be sent back to the client as a result of
processing of the request.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
protected HttpResponse |
HttpRequestExecutor.doReceiveResponse(HttpRequest request,
HttpClientConnection conn,
HttpContext context)
Waits for and receives a response.
|
protected HttpResponse |
HttpRequestExecutor.doSendRequest(HttpRequest request,
HttpClientConnection conn,
HttpContext context)
Send the given request over the given connection.
|
HttpResponse |
HttpRequestExecutor.execute(HttpRequest request,
HttpClientConnection conn,
HttpContext context)
Sends the request and obtain a response.
|
HttpResponse |
HttpCoreContext.getResponse() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
HttpRequestExecutor.canResponseHaveBody(HttpRequest request,
HttpResponse response)
Decide whether a response comes with an entity.
|
protected void |
HttpService.doService(HttpRequest request,
HttpResponse response,
HttpContext context)
The default implementation of this method attempts to resolve an
HttpRequestHandler for the request URI of the given request
and, if found, executes its
HttpRequestHandler.handle(HttpRequest, HttpResponse, HttpContext)
method. |
void |
HttpRequestHandler.handle(HttpRequest request,
HttpResponse response,
HttpContext context)
Handles the request and produces a response to be sent back to
the client.
|
protected void |
HttpService.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.
|
void |
HttpRequestExecutor.postProcess(HttpResponse response,
HttpProcessor processor,
HttpContext context)
Post-processes the given response using the given protocol processor and
completes the process of request execution.
|
void |
ResponseConnControl.process(HttpResponse response,
HttpContext context) |
void |
ResponseDate.process(HttpResponse response,
HttpContext context) |
void |
BasicHttpProcessor.process(HttpResponse response,
HttpContext context)
Deprecated.
|
void |
ImmutableHttpProcessor.process(HttpResponse response,
HttpContext context) |
void |
ResponseContent.process(HttpResponse response,
HttpContext context)
Processes the response (possibly updating or inserting) Content-Length and Transfer-Encoding headers.
|
void |
ResponseServer.process(HttpResponse response,
HttpContext context) |
void |
HttpExpectationVerifier.verify(HttpRequest request,
HttpResponse response,
HttpContext context)
Verifies whether the given request meets the server's expectations.
|
Modifier and Type | Method and Description |
---|---|
static void |
EntityUtils.updateEntity(HttpResponse response,
HttpEntity entity)
Updates an entity in a response by first consuming an existing entity, then setting the new one.
|
Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.