| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpHandler | |
| private final ExceptionHandler | |
| private final ThreadSetupHandler. | |
| private final ApplicationListeners | |
| private final HttpHandler | |
| private final ServletPathMatches | |
| private static final RuntimePermission | |
| private final ServletContextImpl |
| Access | Constructor and Description |
|---|---|
| public | ServletInitialHandler(final ServletPathMatches paths, final HttpHandler next, final Deployment deployment, final ServletContextImpl servletContext)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | dispatchMockRequest(HttpServletRequest
The request request, HttpServletResponse The response response)Implements io. Dispatches a mock request to the servlet container. |
| private void | dispatchRequest(final HttpServerExchange exchange, final ServletRequestContext servletRequestContext, final ServletChain servletChain, final DispatcherType dispatcherType)
|
| public void | dispatchToPath(final HttpServerExchange exchange, final ServletPathMatch pathInfo, final DispatcherType dispatcherType)
Implements io. Dispatches a servlet request to the specified servlet path, changing the current path |
| public void | dispatchToServlet(final HttpServerExchange exchange, final ServletChain servletchain, final DispatcherType dispatcherType)
Implements io. Dispatches a servlet request to the specified servlet, without changing the current path |
| public HttpHandler | |
| private void | |
| public void | handleRequest(final HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| private boolean |
| dispatchHandler | back to summary |
|---|---|
| private final HttpHandler dispatchHandler | |
| exceptionHandler | back to summary |
|---|---|
| private final ExceptionHandler exceptionHandler | |
| firstRequestHandler | back to summary |
|---|---|
| private final ThreadSetupHandler. | |
| listeners | back to summary |
|---|---|
| private final ApplicationListeners listeners | |
| next | back to summary |
|---|---|
| private final HttpHandler next | |
| paths | back to summary |
|---|---|
| private final ServletPathMatches paths | |
| PERMISSION | back to summary |
|---|---|
| private static final RuntimePermission PERMISSION | |
| servletContext | back to summary |
|---|---|
| private final ServletContextImpl servletContext | |
| ServletInitialHandler | back to summary |
|---|---|
| public ServletInitialHandler(final ServletPathMatches paths, final HttpHandler next, final Deployment deployment, final ServletContextImpl servletContext) | |
| dispatchMockRequest | back to summary |
|---|---|
| public void dispatchMockRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException Implements io. Doc from io. Dispatches a mock request to the servlet container.
| |
| dispatchRequest | back to summary |
|---|---|
| private void dispatchRequest(final HttpServerExchange exchange, final ServletRequestContext servletRequestContext, final ServletChain servletChain, final DispatcherType dispatcherType) throws Exception | |
| dispatchToPath | back to summary |
|---|---|
| public void dispatchToPath(final HttpServerExchange exchange, final ServletPathMatch pathInfo, final DispatcherType dispatcherType) throws Exception Implements io. Doc from io. Dispatches a servlet request to the specified servlet path, changing the current path | |
| dispatchToServlet | back to summary |
|---|---|
| public void dispatchToServlet(final HttpServerExchange exchange, final ServletChain servletchain, final DispatcherType dispatcherType) throws Exception Implements io. Doc from io. Dispatches a servlet request to the specified servlet, without changing the current path
| |
| getNext | back to summary |
|---|---|
| public HttpHandler getNext() | |
| handleFirstRequest | back to summary |
|---|---|
| private void handleFirstRequest(final HttpServerExchange exchange, ServletRequestContext servletRequestContext) throws Exception | |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(final HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| isMultiPartExchange | back to summary |
|---|---|
| private boolean isMultiPartExchange(final HttpServerExchange exchange) | |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBufferPool | |
| private XnioBufferPoolAdaptor | poolAdaptor
References Deprecated
XnioBufferPoolAdaptor is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private SSLSessionInfo |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | addCloseListener(ServerConnection.
The close listener listenerImplements abstract io. Adds a close listener, than will be invoked with the connection is closed |
| public void | close()
Implements abstract io. Implements org. Close this channel. |
| protected void | exchangeComplete(HttpServerExchange exchange)
Implements abstract io. Invoked when the exchange is complete. |
| public Pool | getBufferPool()
Implements abstract io.
References Deprecated
Pool is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public int | |
| public ByteBufferPool | |
| public ChannelListener. | getCloseSetter()
Implements org. Get the setter which can be used to change the close listener for this channel. |
| public XnioIoThread | getIoThread()
Implements abstract io. Implements org. Get the I/O thread associated with this channel. |
| public SocketAddress | getLocalAddress()
Implements abstract io. Implements org. Get the local address that this channel is bound to. |
| public <A extends SocketAddress> A | getLocalAddress(Class<A>
the address type class type)Implements abstract io. Implements org. Get the local address of a given type, or |
| public <T> T | getOption(Option<T>
the option to get option)Implements abstract io. Implements org. Get the value of a channel option. |
| public SocketAddress | getPeerAddress()
Implements abstract io. Implements org. Returns the actual address of the remote connection. |
| public <A extends SocketAddress> A | getPeerAddress(Class<A>
The type of address to return type)Implements abstract io. Implements org. Returns the actual address of the remote connection. |
| public ConduitStreamSinkChannel | |
| protected StreamSinkConduit | getSinkConduit(HttpServerExchange exchange, StreamSinkConduit conduit)
Implements abstract io. Gets the sink conduit that should be used for this request. |
| public ConduitStreamSourceChannel | |
| public SSLSessionInfo | getSslSessionInfo()
Implements abstract io. Gets SSL information about the connection. |
| public String | getTransportProtocol()
Implements abstract io. Returns a string representation describing the protocol used to transmit messages on this connection. |
| public OptionMap | |
| public XnioWorker | getWorker()
Implements abstract io. Implements org. Get the worker for this channel. |
| protected boolean | |
| public boolean | isContinueResponseSupported()
Implements abstract io.
|
| public boolean | isOpen()
Implements abstract io. Implements java. Tells whether or not this channel is open. |
| public boolean | |
| protected boolean | |
| protected void | maxEntitySizeUpdated(HttpServerExchange
The current exchange exchange)Implements abstract io. Callback that is invoked if the max entity size is updated. |
| public HttpServerExchange | sendOutOfBandResponse(HttpServerExchange
The current exchange exchange)Implements abstract io. Sends an out of band response, such as a HTTP 100-continue response. |
| protected void | setConnectListener(HttpUpgradeListener connectListener)
Implements abstract io.
|
| public <T> T | setOption(Option<T>
the option to set option, T the value of the option to set value)Implements abstract io. Implements org. Set an option for this channel. |
| public void | setSslSessionInfo(SSLSessionInfo
The ssl session information sessionInfo)Implements abstract io. Sets the current SSL information. |
| protected void | setUpgradeListener(HttpUpgradeListener upgradeListener)
Implements abstract io.
|
| public boolean | supportsOption(Option<?>
the option option)Implements abstract io. Implements org. Determine whether an option is supported on this channel. |
| public void | terminateRequestChannel(HttpServerExchange
The current exchange. exchange)Implements abstract io. Invoked when the exchange is complete, and there is still data in the request channel. |
| public StreamConnection | upgradeChannel()
Implements abstract io. Upgrade the connection, if allowed |
| bufferPool | back to summary |
|---|---|
| private final ByteBufferPool bufferPool | |
| poolAdaptor | back to summary |
|---|---|
| private XnioBufferPoolAdaptor poolAdaptor
References Deprecated
See corresponding docs for further information. | |
| sslSessionInfo | back to summary |
|---|---|
| private SSLSessionInfo sslSessionInfo | |
| MockServerConnection | back to summary |
|---|---|
| private MockServerConnection(ByteBufferPool bufferPool) | |
| addCloseListener | back to summary |
|---|---|
| public void addCloseListener(ServerConnection. Implements abstract io. Doc from io. Adds a close listener, than will be invoked with the connection is closed
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract io. Implements org. Doc from org. Close this channel. When a channel is closed, its close listener is invoked. Invoking this method more than once has no additional effect.
| |
| exchangeComplete | back to summary |
|---|---|
| protected void exchangeComplete(HttpServerExchange exchange) Implements abstract io. Doc from io. Invoked when the exchange is complete.
| |
| getBufferPool | back to summary |
|---|---|
| public Pool Implements abstract io. References Deprecated
See corresponding docs for further information.
| |
| getBufferSize | back to summary |
|---|---|
| public int getBufferSize() Implements abstract io.
| |
| getByteBufferPool | back to summary |
|---|---|
| public ByteBufferPool getByteBufferPool() Implements abstract io.
| |
| getCloseSetter | back to summary |
|---|---|
| public ChannelListener. Implements org. Doc from org. Get the setter which can be used to change the close listener for this channel. If the channel is already closed, then the listener will not be called.
| |
| getIoThread | back to summary |
|---|---|
| public XnioIoThread getIoThread() Implements abstract io. Implements org. Doc from org. Get the I/O thread associated with this channel.
| |
| getLocalAddress | back to summary |
|---|---|
| public SocketAddress getLocalAddress() Implements abstract io. Implements org. Doc from org. Get the local address that this channel is bound to.
| |
| getLocalAddress | back to summary |
|---|---|
| public <A extends SocketAddress> A getLocalAddress(Class<A> type) Implements abstract io. Implements org. Doc from org. Get the local address of a given type, or | |
| getOption | back to summary |
|---|---|
| public <T> T getOption(Option<T> option) throws IOException Implements abstract io. Implements org. Doc from org. Get the value of a channel option.
| |
| getPeerAddress | back to summary |
|---|---|
| public SocketAddress getPeerAddress() Implements abstract io. Implements org. Doc from io. Returns the actual address of the remote connection. This will not take things like X-Forwarded-for into account.
| |
| getPeerAddress | back to summary |
|---|---|
| public <A extends SocketAddress> A getPeerAddress(Class<A> type) Implements abstract io. Implements org. Doc from io. Returns the actual address of the remote connection. This will not take things like X-Forwarded-for into account. | |
| getSinkChannel | back to summary |
|---|---|
| public ConduitStreamSinkChannel getSinkChannel() Implements abstract io.
| |
| getSinkConduit | back to summary |
|---|---|
| protected StreamSinkConduit getSinkConduit(HttpServerExchange exchange, StreamSinkConduit conduit) Implements abstract io. Doc from io. Gets the sink conduit that should be used for this request. This allows the connection to apply any per-request conduit wrapping that is required, without adding to the response wrappers array. There is no corresponding method for source conduits, as in general conduits can be directly inserted into the connection after the request has been read.
| |
| getSourceChannel | back to summary |
|---|---|
| public ConduitStreamSourceChannel getSourceChannel() Implements abstract io.
| |
| getSslSessionInfo | back to summary |
|---|---|
| public SSLSessionInfo getSslSessionInfo() Implements abstract io. Doc from io. Gets SSL information about the connection. This could represent the actual client connection, or could be providing SSL information that was provided by a front end proxy.
| |
| getTransportProtocol | back to summary |
|---|---|
| public String getTransportProtocol() Implements abstract io. Doc from io. Returns a string representation describing the protocol used to transmit messages on this connection. | |
| getUndertowOptions | back to summary |
|---|---|
| public OptionMap getUndertowOptions() Implements abstract io.
| |
| getWorker | back to summary |
|---|---|
| public XnioWorker getWorker() Implements abstract io. Implements org. Doc from org. Get the worker for this channel.
| |
| isConnectSupported | back to summary |
|---|---|
| protected boolean isConnectSupported() Implements abstract io.
| |
| isContinueResponseSupported | back to summary |
|---|---|
| public boolean isContinueResponseSupported() Implements abstract io.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements abstract io. Implements java. Doc from java. Tells whether or not this channel is open.
| |
| isRequestTrailerFieldsSupported | back to summary |
|---|---|
| public boolean isRequestTrailerFieldsSupported() Implements abstract io.
| |
| isUpgradeSupported | back to summary |
|---|---|
| protected boolean isUpgradeSupported() Implements abstract io.
| |
| maxEntitySizeUpdated | back to summary |
|---|---|
| protected void maxEntitySizeUpdated(HttpServerExchange exchange) Implements abstract io. Doc from io. Callback that is invoked if the max entity size is updated.
| |
| sendOutOfBandResponse | back to summary |
|---|---|
| public HttpServerExchange sendOutOfBandResponse(HttpServerExchange exchange) Implements abstract io. Doc from io. Sends an out of band response, such as a HTTP 100-continue response. Warning do not attempt to write to the current exchange until the out of band exchange has been fully written. Doing so may have unexpected results. Todo this needs more thought.
| |
| setConnectListener | back to summary |
|---|---|
| protected void setConnectListener(HttpUpgradeListener connectListener) Implements abstract io.
| |
| setOption | back to summary |
|---|---|
| public <T> T setOption(Option<T> option, T value) throws IllegalArgumentException, IOException Implements abstract io. Implements org. Doc from org. Set an option for this channel. Unsupported options are ignored.
| |
| setSslSessionInfo | back to summary |
|---|---|
| public void setSslSessionInfo(SSLSessionInfo sessionInfo) Implements abstract io. Doc from io. Sets the current SSL information. This can be used by handlers to setup SSL information that was provided by a front end proxy. If this is being set of a per request basis then you must ensure that it is either cleared by an exchange completion listener at the end of the request, or is always set for every request. Otherwise it is possible to SSL information to 'leak' between requests.
| |
| setUpgradeListener | back to summary |
|---|---|
| protected void setUpgradeListener(HttpUpgradeListener upgradeListener) Implements abstract io.
| |
| supportsOption | back to summary |
|---|---|
| public boolean supportsOption(Option<?> option) Implements abstract io. Implements org. Doc from org. Determine whether an option is supported on this channel. | |
| terminateRequestChannel | back to summary |
|---|---|
| public void terminateRequestChannel(HttpServerExchange exchange) Implements abstract io. Doc from io. Invoked when the exchange is complete, and there is still data in the request channel. Some implementations (such as SPDY and HTTP2) have more efficient ways to drain the request than simply reading all data (e.g. RST_STREAM). After this method is invoked the stream will be drained normally.
| |
| upgradeChannel | back to summary |
|---|---|
| public StreamConnection upgradeChannel() Implements abstract io. Doc from io. Upgrade the connection, if allowed
| |