Uses of Class
org.apache.http.HttpException
-
Packages that use HttpException Package Description org.apache.http Core HTTP component APIs and primitives.org.apache.http.entity Core HTTP entity implementations.org.apache.http.impl Default implementations of HTTP connections for synchronous, blocking communication.org.apache.http.impl.entity Default implementations of entity content strategies.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.io HTTP message parser and writer APIs for synchronous, blocking communication.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. -
-
Uses of HttpException in org.apache.http
Subclasses of HttpException in org.apache.http Modifier and Type Class Description class
MethodNotSupportedException
Signals that an HTTP method is not supported.class
ProtocolException
Signals that an HTTP protocol violation has occurred.class
UnsupportedHttpVersionException
Signals an unsupported version of the HTTP protocol.Methods in org.apache.http that throw HttpException Modifier and Type Method Description void
HttpRequestInterceptor. process(HttpRequest request, HttpContext context)
Processes a request.void
HttpResponseInterceptor. process(HttpResponse response, HttpContext context)
Processes a response.void
HttpServerConnection. receiveRequestEntity(HttpEntityEnclosingRequest request)
Receives the next request entity available from this connection and attaches it to an existing request.HttpRequest
HttpServerConnection. receiveRequestHeader()
Receives the request line and all headers available from this connection.void
HttpClientConnection. receiveResponseEntity(HttpResponse response)
Receives the next response entity available from this connection and attaches it to an existing HttpResponse object.HttpResponse
HttpClientConnection. receiveResponseHeader()
Receives the request line and headers of the next response available from this connection.void
HttpClientConnection. sendRequestEntity(HttpEntityEnclosingRequest request)
Sends the request entity over the connection.void
HttpClientConnection. sendRequestHeader(HttpRequest request)
Sends the request line and all headers over the connection.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. -
Uses of HttpException in org.apache.http.entity
Methods in org.apache.http.entity that throw HttpException Modifier and Type Method Description long
ContentLengthStrategy. determineLength(HttpMessage message)
Returns length of the given message in bytes. -
Uses of HttpException in org.apache.http.impl
Methods in org.apache.http.impl that throw HttpException Modifier and Type Method Description protected HttpEntity
BHttpConnectionBase. prepareInput(HttpMessage message)
protected java.io.OutputStream
BHttpConnectionBase. prepareOutput(HttpMessage message)
void
AbstractHttpServerConnection. receiveRequestEntity(HttpEntityEnclosingRequest request)
Deprecated.void
DefaultBHttpServerConnection. receiveRequestEntity(HttpEntityEnclosingRequest request)
HttpRequest
AbstractHttpServerConnection. receiveRequestHeader()
Deprecated.HttpRequest
DefaultBHttpServerConnection. receiveRequestHeader()
void
AbstractHttpClientConnection. receiveResponseEntity(HttpResponse response)
Deprecated.void
DefaultBHttpClientConnection. receiveResponseEntity(HttpResponse response)
HttpResponse
AbstractHttpClientConnection. receiveResponseHeader()
Deprecated.HttpResponse
DefaultBHttpClientConnection. receiveResponseHeader()
void
AbstractHttpClientConnection. sendRequestEntity(HttpEntityEnclosingRequest request)
Deprecated.void
DefaultBHttpClientConnection. sendRequestEntity(HttpEntityEnclosingRequest request)
void
AbstractHttpClientConnection. sendRequestHeader(HttpRequest request)
Deprecated.void
DefaultBHttpClientConnection. sendRequestHeader(HttpRequest request)
void
AbstractHttpServerConnection. sendResponseEntity(HttpResponse response)
Deprecated.void
DefaultBHttpServerConnection. sendResponseEntity(HttpResponse response)
void
AbstractHttpServerConnection. sendResponseHeader(HttpResponse response)
Deprecated.void
DefaultBHttpServerConnection. sendResponseHeader(HttpResponse response)
-
Uses of HttpException in org.apache.http.impl.entity
Methods in org.apache.http.impl.entity that throw HttpException Modifier and Type Method Description HttpEntity
EntityDeserializer. deserialize(SessionInputBuffer inBuffer, HttpMessage message)
Deprecated.Creates anHttpEntity
based on properties of the given message.long
DisallowIdentityContentLengthStrategy. determineLength(HttpMessage message)
long
LaxContentLengthStrategy. determineLength(HttpMessage message)
long
StrictContentLengthStrategy. determineLength(HttpMessage message)
protected BasicHttpEntity
EntityDeserializer. doDeserialize(SessionInputBuffer inBuffer, HttpMessage message)
Deprecated.Creates aBasicHttpEntity
based on properties of the given message.protected java.io.OutputStream
EntitySerializer. doSerialize(SessionOutputBuffer outbuffer, HttpMessage message)
Deprecated.Creates a transfer codec based on properties of the given HTTP message and returnsOutputStream
instance that transparently encodes output data as it is being written out to the output stream.void
EntitySerializer. serialize(SessionOutputBuffer outbuffer, HttpMessage message, HttpEntity entity)
Deprecated.Writes out the content of the given HTTP entity to the session output buffer based on properties of the given HTTP message. -
Uses of HttpException in org.apache.http.impl.io
Methods in org.apache.http.impl.io that throw HttpException Modifier and Type Method Description T
AbstractMessageParser. parse()
protected abstract T
AbstractMessageParser. parseHead(SessionInputBuffer sessionBuffer)
Subclasses must override this method to generate an instance ofHttpMessage
based on the initial input from the session buffer.protected HttpRequest
DefaultHttpRequestParser. parseHead(SessionInputBuffer sessionBuffer)
protected HttpResponse
DefaultHttpResponseParser. parseHead(SessionInputBuffer sessionBuffer)
protected HttpMessage
HttpRequestParser. parseHead(SessionInputBuffer sessionBuffer)
Deprecated.protected HttpMessage
HttpResponseParser. parseHead(SessionInputBuffer sessionBuffer)
Deprecated.static Header[]
AbstractMessageParser. parseHeaders(SessionInputBuffer inBuffer, int maxHeaderCount, int maxLineLen, LineParser parser)
Parses HTTP headers from the data receiver stream according to the generic format as given in Section 3.1 of RFC 822, RFC-2616 Section 4 and 19.3.static Header[]
AbstractMessageParser. parseHeaders(SessionInputBuffer inBuffer, int maxHeaderCount, int maxLineLen, LineParser parser, java.util.List<CharArrayBuffer> headerLines)
Parses HTTP headers from the data receiver stream according to the generic format as given in Section 3.1 of RFC 822, RFC-2616 Section 4 and 19.3.void
AbstractMessageWriter. write(T message)
-
Uses of HttpException in org.apache.http.impl.nio
Methods in org.apache.http.impl.nio that throw HttpException Modifier and Type Method Description void
NHttpClientEventHandlerAdaptor. inputReady(NHttpClientConnection conn, ContentDecoder decoder)
Deprecated.void
NHttpServerEventHandlerAdaptor. inputReady(NHttpServerConnection conn, ContentDecoder decoder)
Deprecated.void
NHttpClientEventHandlerAdaptor. outputReady(NHttpClientConnection conn, ContentEncoder encoder)
Deprecated.void
NHttpServerEventHandlerAdaptor. outputReady(NHttpServerConnection conn, ContentEncoder encoder)
Deprecated.protected HttpEntity
NHttpConnectionBase. prepareDecoder(HttpMessage message)
Initializes a specificContentDecoder
implementation based on the properties of the givenHttpMessage
and generates an instance ofHttpEntity
matching the properties of the content decoder.protected void
NHttpConnectionBase. prepareEncoder(HttpMessage message)
Initializes a specificContentEncoder
implementation based on the properties of the givenHttpMessage
.void
NHttpClientEventHandlerAdaptor. requestReady(NHttpClientConnection conn)
Deprecated.void
NHttpServerEventHandlerAdaptor. requestReceived(NHttpServerConnection conn)
Deprecated.void
NHttpServerEventHandlerAdaptor. responseReady(NHttpServerConnection conn)
Deprecated.void
NHttpClientEventHandlerAdaptor. responseReceived(NHttpClientConnection conn)
Deprecated.void
DefaultNHttpClientConnection. submitRequest(HttpRequest request)
void
DefaultNHttpServerConnection. submitResponse(HttpResponse response)
-
Uses of HttpException in org.apache.http.impl.nio.codecs
Methods in org.apache.http.impl.nio.codecs that throw HttpException Modifier and Type Method Description protected abstract T
AbstractMessageParser. createMessage(CharArrayBuffer buffer)
CreatesHttpMessage
instance based on the content of the input buffer containing the first line of the incoming HTTP message.protected HttpRequest
DefaultHttpRequestParser. createMessage(CharArrayBuffer buffer)
protected HttpResponse
DefaultHttpResponseParser. createMessage(CharArrayBuffer buffer)
protected HttpMessage
HttpRequestParser. createMessage(CharArrayBuffer buffer)
Deprecated.protected HttpMessage
HttpResponseParser. createMessage(CharArrayBuffer buffer)
Deprecated.T
AbstractMessageParser. parse()
private void
AbstractMessageParser. parseHeadLine()
void
AbstractMessageWriter. write(T message)
-
Uses of HttpException in org.apache.http.io
Methods in org.apache.http.io that throw HttpException Modifier and Type Method Description T
HttpMessageParser. parse()
Generates an instance ofHttpMessage
from the underlying data source.void
HttpMessageWriter. write(T message)
Serializes an instance ofHttpMessage
to the underlying data sink. -
Uses of HttpException in org.apache.http.nio
Methods in org.apache.http.nio with parameters of type HttpException Modifier and Type Method Description void
NHttpClientHandler. exception(NHttpClientConnection conn, HttpException ex)
Deprecated.Triggered when an HTTP protocol violation occurs while receiving an HTTP response.void
NHttpServiceHandler. exception(NHttpServerConnection conn, HttpException ex)
Deprecated.Triggered when an HTTP protocol violation occurs while receiving an HTTP request.Methods in org.apache.http.nio that throw HttpException Modifier and Type Method Description void
NHttpClientEventHandler. connected(NHttpClientConnection conn, java.lang.Object attachment)
Triggered when a new outgoing connection is created.void
NHttpServerEventHandler. connected(NHttpServerConnection conn)
Triggered when a new incoming connection is created.void
NHttpClientEventHandler. inputReady(NHttpClientConnection conn, ContentDecoder decoder)
Triggered when the underlying channel is ready for reading a new portion of the response entity through the corresponding content decoder.void
NHttpServerEventHandler. inputReady(NHttpServerConnection conn, ContentDecoder decoder)
Triggered when the underlying channel is ready for reading a new portion of the request entity through the corresponding content decoder.void
NHttpClientEventHandler. outputReady(NHttpClientConnection conn, ContentEncoder encoder)
Triggered when the underlying channel is ready for writing a next portion of the request entity through the corresponding content encoder.void
NHttpServerEventHandler. outputReady(NHttpServerConnection conn, ContentEncoder encoder)
Triggered when the underlying channel is ready for writing a next portion of the response entity through the corresponding content encoder.T
NHttpMessageParser. parse()
Attempts to parse a complete message head from the content of the internal buffer.void
NHttpClientEventHandler. requestReady(NHttpClientConnection conn)
Triggered when the connection is ready to accept a new HTTP request.void
NHttpServerEventHandler. requestReceived(NHttpServerConnection conn)
Triggered when a new HTTP request is received.void
NHttpServerEventHandler. responseReady(NHttpServerConnection conn)
Triggered when the connection is ready to accept a new HTTP response.void
NHttpClientEventHandler. responseReceived(NHttpClientConnection conn)
Triggered when an HTTP response is received.void
NHttpClientConnection. submitRequest(HttpRequest request)
SubmitsHttpRequest
to be sent to the target server.void
NHttpServerConnection. submitResponse(HttpResponse response)
Submits {link @HttpResponse} to be sent to the client.void
NHttpClientEventHandler. timeout(NHttpClientConnection conn)
Triggered when no input is detected on this connection over the maximum period of inactivity.void
NHttpMessageWriter. write(T message)
Serializes out the HTTP message head. -
Uses of HttpException in org.apache.http.nio.protocol
Fields in org.apache.http.nio.protocol declared as HttpException Modifier and Type Field Description private HttpException
AsyncNHttpServiceHandler.ServerConnState. httpex
Methods in org.apache.http.nio.protocol that return HttpException Modifier and Type Method Description HttpException
AsyncNHttpServiceHandler.ServerConnState. getHttpException()
HttpException
AsyncNHttpServiceHandler.ServerConnState. getHttpExepction()
Methods in org.apache.http.nio.protocol with parameters of type HttpException Modifier and Type Method Description void
AsyncNHttpClientHandler. exception(NHttpClientConnection conn, HttpException ex)
Deprecated.void
AsyncNHttpServiceHandler. exception(NHttpServerConnection conn, HttpException httpex)
Deprecated.void
BufferingHttpClientHandler. exception(NHttpClientConnection conn, HttpException httpex)
Deprecated.void
BufferingHttpServiceHandler. exception(NHttpServerConnection conn, HttpException httpex)
Deprecated.void
ThrottlingHttpClientHandler. exception(NHttpClientConnection conn, HttpException ex)
Deprecated.void
ThrottlingHttpServiceHandler. exception(NHttpServerConnection conn, HttpException httpex)
Deprecated.void
EventListener. fatalProtocolException(HttpException ex, NHttpConnection conn)
Deprecated.Triggered when an HTTP protocol error caused a connection to be terminated.private void
AsyncNHttpServiceHandler. handleException(HttpException ex, HttpResponse response)
Deprecated.void
AsyncNHttpServiceHandler.ResponseTriggerImpl. handleException(HttpException ex)
void
NHttpResponseTrigger. handleException(HttpException ex)
Deprecated.Reports a protocol exception thrown while processing the request.private void
ThrottlingHttpServiceHandler. handleException(HttpException ex, HttpResponse response)
Deprecated.void
AsyncNHttpServiceHandler.ServerConnState. setHttpException(HttpException ex)
void
AsyncNHttpServiceHandler.ServerConnState. setHttpExepction(HttpException ex)
Methods in org.apache.http.nio.protocol that throw HttpException Modifier and Type Method Description private void
HttpAsyncService. commitFinalResponse(NHttpServerConnection conn, HttpAsyncService.State state)
void
HttpAsyncRequestExecutor. connected(NHttpClientConnection conn, java.lang.Object attachment)
ConsumingNHttpEntity
BufferingHttpServiceHandler.RequestHandlerAdaptor. entityRequest(HttpEntityEnclosingRequest request, HttpContext context)
ConsumingNHttpEntity
NHttpRequestHandler. entityRequest(HttpEntityEnclosingRequest request, HttpContext context)
Deprecated.Triggered when a request is received with an entity.HttpRequest
BasicAsyncClientExchangeHandler. generateRequest()
HttpRequest
BasicAsyncRequestExecutionHandler. generateRequest()
Deprecated.HttpRequest
HttpAsyncClientExchangeHandler. generateRequest()
Invoked to generate a HTTP request message head.HttpRequest
HttpAsyncRequestProducer. generateRequest()
Invoked to generate a HTTP request message head.HttpRequest
PipeliningClientExchangeHandler. generateRequest()
void
BasicAsyncRequestHandler. handle(HttpRequest request, HttpAsyncExchange httpexchange, HttpContext context)
void
BufferingHttpServiceHandler.RequestHandlerAdaptor. handle(HttpRequest request, HttpResponse response, HttpContext context)
void
HttpAsyncRequestHandler. handle(T data, HttpAsyncExchange httpExchange, HttpContext context)
Triggered to complete request processing and to initiate the process of generating a response.void
NHttpRequestHandler. handle(HttpRequest request, HttpResponse response, NHttpResponseTrigger trigger, HttpContext context)
Deprecated.Initiates processing of the request.void
SimpleNHttpRequestHandler. handle(HttpRequest request, HttpResponse response, NHttpResponseTrigger trigger, HttpContext context)
Deprecated.abstract void
SimpleNHttpRequestHandler. handle(HttpRequest request, HttpResponse response, HttpContext context)
Deprecated.private void
ThrottlingHttpServiceHandler. handleRequest(HttpRequest request, ThrottlingHttpServiceHandler.ServerConnState connState, NHttpServerConnection conn)
Deprecated.void
HttpAsyncRequestExecutor. inputReady(NHttpClientConnection conn, ContentDecoder decoder)
void
HttpAsyncService. inputReady(NHttpServerConnection conn, ContentDecoder decoder)
protected abstract void
AbstractAsyncRequestConsumer. onRequestReceived(HttpRequest request)
Invoked when a HTTP request message is received.protected abstract void
AbstractAsyncResponseConsumer. onResponseReceived(HttpResponse response)
Invoked when a HTTP response message is received.void
HttpAsyncRequestExecutor. outputReady(NHttpClientConnection conn, ContentEncoder encoder)
void
HttpAsyncService. outputReady(NHttpServerConnection conn, ContentEncoder encoder)
private void
AsyncNHttpServiceHandler. processRequest(NHttpServerConnection conn, HttpRequest request)
Deprecated.HttpAsyncRequestConsumer<T>
HttpAsyncRequestHandler. processRequest(HttpRequest request, HttpContext context)
Triggered when an incoming request is received.private void
AsyncNHttpClientHandler. processResponse(NHttpClientConnection conn, AsyncNHttpClientHandler.ClientConnState connState)
Deprecated.private void
HttpAsyncRequestExecutor. processResponse(NHttpClientConnection conn, HttpAsyncRequestExecutor.State state, HttpAsyncClientExchangeHandler handler)
void
HttpAsyncRequestExecutor. requestReady(NHttpClientConnection conn)
void
AbstractAsyncRequestConsumer. requestReceived(HttpRequest request)
void
HttpAsyncRequestConsumer. requestReceived(HttpRequest request)
Invoked when a HTTP request message is received.void
HttpAsyncService. requestReceived(NHttpServerConnection conn)
void
HttpAsyncClientExchangeHandler. responseCompleted()
Invoked to signal that the response has been fully processed.void
HttpAsyncService. responseReady(NHttpServerConnection conn)
void
AbstractAsyncResponseConsumer. responseReceived(HttpResponse response)
void
BasicAsyncClientExchangeHandler. responseReceived(HttpResponse response)
void
BasicAsyncRequestExecutionHandler. responseReceived(HttpResponse response)
Deprecated.void
HttpAsyncClientExchangeHandler. responseReceived(HttpResponse response)
Invoked when a HTTP response message is received.void
HttpAsyncRequestExecutor. responseReceived(NHttpClientConnection conn)
void
HttpAsyncResponseConsumer. responseReceived(HttpResponse response)
Invoked when a HTTP response message is received.void
PipeliningClientExchangeHandler. responseReceived(HttpResponse response)
private void
AsyncNHttpServiceHandler. sendResponse(NHttpServerConnection conn, HttpRequest request, HttpResponse response)
Deprecated.void
HttpAsyncExpectationVerifier. verify(HttpAsyncExchange httpExchange, HttpContext context)
-
Uses of HttpException in org.apache.http.protocol
Methods in org.apache.http.protocol with parameters of type HttpException Modifier and Type Method Description 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.Methods in org.apache.http.protocol that throw HttpException Modifier and Type Method 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.protected void
HttpService. doService(HttpRequest request, HttpResponse response, HttpContext context)
The default implementation of this method attempts to resolve anHttpRequestHandler
for the request URI of the given request and, if found, executes itsHttpRequestHandler.handle(HttpRequest, HttpResponse, HttpContext)
method.HttpResponse
HttpRequestExecutor. execute(HttpRequest request, HttpClientConnection conn, HttpContext context)
Sends the request and obtain a response.void
HttpRequestHandler. handle(HttpRequest request, HttpResponse response, HttpContext context)
Handles the request and produces a response to be sent back to the client.void
HttpService. handleRequest(HttpServerConnection conn, HttpContext context)
Handles receives one HTTP request over the given connection within the given execution context and sends a response back to the client.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
HttpRequestExecutor. preProcess(HttpRequest request, HttpProcessor processor, HttpContext context)
Pre-process the given request using the given protocol processor and initiates the process of request execution.void
BasicHttpProcessor. process(HttpRequest request, HttpContext context)
Deprecated.void
BasicHttpProcessor. process(HttpResponse response, HttpContext context)
Deprecated.void
ImmutableHttpProcessor. process(HttpRequest request, HttpContext context)
void
ImmutableHttpProcessor. process(HttpResponse response, HttpContext context)
void
RequestConnControl. process(HttpRequest request, HttpContext context)
void
RequestContent. process(HttpRequest request, HttpContext context)
void
RequestDate. process(HttpRequest request, HttpContext context)
void
RequestExpectContinue. process(HttpRequest request, HttpContext context)
void
RequestTargetHost. process(HttpRequest request, HttpContext context)
void
RequestUserAgent. process(HttpRequest request, HttpContext context)
void
ResponseConnControl. 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
ResponseDate. process(HttpResponse response, HttpContext context)
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.
-