| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private static final AtomicLong | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | addCloseListener(ServerConnection.
The close listener listenerAdds a close listener, than will be invoked with the connection is closed |
| public abstract void | |
| protected abstract void | |
| public abstract Pool | |
| public abstract int | |
| public abstract ByteBufferPool | |
| public final long | |
| public abstract XnioIoThread | Returns: The IO thread associated with the connectionRedeclares org. Get the I/O thread associated with this channel. |
| public abstract SocketAddress | getLocalAddress()
Redeclares org. Get the local address that this channel is bound to. |
| public abstract <A extends SocketAddress> A | getLocalAddress(Class<A>
the address type class type)Redeclares org. Get the local address of a given type, or |
| public abstract <T> T | getOption(Option<T>
the option to get option)Redeclares org. Get the value of a channel option. |
| public abstract SocketAddress | Returns: The address of the remote peerRedeclares org. Returns the actual address of the remote connection. |
| public abstract < The address type A extends SocketAddress> A | Returns: The remote endpoint addressThe type of address to return type)Redeclares org. Returns the actual address of the remote connection. |
| public String | |
| protected abstract ConduitStreamSinkChannel | |
| protected abstract StreamSinkConduit | Returns: The source conduitGets the sink conduit that should be used for this request. |
| protected abstract ConduitStreamSourceChannel | |
| public SSLSession | Returns: The SSLSession of the connectionGets the SSLSession of the underlying connection, or null if SSL is not in use. |
| public abstract SSLSessionInfo | Returns: SSL information about the connectionGets SSL information about the connection. |
| public abstract String | Returns: the transport protocolReturns a string representation describing the protocol used to transmit messages on this connection. |
| public abstract OptionMap | |
| public abstract XnioWorker | Returns: The connections workerRedeclares org. Get the worker for this channel. |
| protected abstract boolean | |
| public abstract boolean | Returns: true if this connection supports sending a 100-continue response
|
| public abstract boolean | Returns: true if the connection is openRedeclares java. Tells whether or not this channel is open. |
| public boolean | |
| public abstract boolean | |
| protected abstract boolean | |
| protected abstract void | maxEntitySizeUpdated(HttpServerExchange
The current exchange exchange)Callback that is invoked if the max entity size is updated. |
| public boolean | Returns: true if the server attempted the push, false otherwiseThe path of the resource path, final HttpString The request method method, final HeaderMap The request headers requestHeaders)Attempts to push a resource if this connection supports server push. |
| public boolean | Returns: true if the server attempted the push, false otherwiseThe path of the resource path, final HttpString The request method method, final HeaderMap The request headers requestHeaders, HttpHandler handler)Attempts to push a resource if this connection supports server push. |
| public abstract HttpServerExchange | Returns: The out of band exchange.The current exchange exchange)Sends an out of band response, such as a HTTP 100-continue response. |
| protected abstract void | |
| public abstract <T> T | setOption(Option<T>
the option to set option, T the value of the option to set value)Redeclares org. Set an option for this channel. |
| public abstract void | setSslSessionInfo(SSLSessionInfo
The ssl session information sessionInfo)Sets the current SSL information. |
| protected abstract void | |
| public abstract boolean | supportsOption(Option<?>
the option option)Redeclares org. Determine whether an option is supported on this channel. |
| public abstract void | terminateRequestChannel(HttpServerExchange
The current exchange. exchange)Invoked when the exchange is complete, and there is still data in the request channel. |
| protected abstract StreamConnection | Returns: The StreamConnection that should be passed to the upgrade handlerUpgrade the connection, if allowed |
| CONNECTION_ID_GENERATOR | back to summary |
|---|---|
| private static final AtomicLong CONNECTION_ID_GENERATOR | |
| id | back to summary |
|---|---|
| private final long id | |
| ServerConnection | back to summary |
|---|---|
| public ServerConnection() | |
| addCloseListener | back to summary |
|---|---|
| public abstract void addCloseListener(ServerConnection. Adds a close listener, than will be invoked with the connection is closed
| |
| close | back to summary |
|---|---|
| public abstract void close() throws IOException Redeclares 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 abstract void exchangeComplete(HttpServerExchange exchange) Invoked when the exchange is complete. | |
| getBufferPool | back to summary |
|---|---|
| public abstract Pool Deprecated
| |
| getBufferSize | back to summary |
|---|---|
| public abstract int getBufferSize() | |
| getByteBufferPool | back to summary |
|---|---|
public abstract ByteBufferPool getByteBufferPool()
| |
| getId | back to summary |
|---|---|
| public final long getId() | |
| getIoThread | back to summary |
|---|---|
| public abstract XnioIoThread getIoThread() Redeclares org. Doc from org. Get the I/O thread associated with this channel.
| |
| getLocalAddress | back to summary |
|---|---|
| public abstract SocketAddress getLocalAddress() Redeclares org. Doc from org. Get the local address that this channel is bound to.
| |
| getLocalAddress | back to summary |
|---|---|
| public abstract <A extends SocketAddress> A getLocalAddress(Class<A> type) Redeclares org. Doc from org. Get the local address of a given type, or
| |
| getOption | back to summary |
|---|---|
| public abstract <T> T getOption(Option<T> option) throws IOException Redeclares org. Doc from org. Get the value of a channel option.
| |
| getPeerAddress | back to summary |
|---|---|
| public abstract SocketAddress getPeerAddress() Redeclares org. Returns the actual address of the remote connection. This will not take things like X-Forwarded-for into account.
| |
| getPeerAddress | back to summary |
|---|---|
| public abstract <A extends SocketAddress> A getPeerAddress(Class<A> type) Redeclares org. Returns the actual address of the remote connection. This will not take things like X-Forwarded-for into account.
| |
| getProtocolRequestId | back to summary |
|---|---|
| public String getProtocolRequestId() | |
| getSinkChannel | back to summary |
|---|---|
| protected abstract ConduitStreamSinkChannel getSinkChannel() | |
| getSinkConduit | back to summary |
|---|---|
| protected abstract StreamSinkConduit getSinkConduit(HttpServerExchange exchange, final StreamSinkConduit conduit) 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 |
|---|---|
| protected abstract ConduitStreamSourceChannel getSourceChannel() | |
| getSslSession | back to summary |
|---|---|
| public SSLSession getSslSession() Gets the SSLSession of the underlying connection, or null if SSL is not in use.
Note that for client cert auth
| |
| getSslSessionInfo | back to summary |
|---|---|
| public abstract SSLSessionInfo getSslSessionInfo() 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 abstract String getTransportProtocol() Returns a string representation describing the protocol used to transmit messages on this connection.
| |
| getUndertowOptions | back to summary |
|---|---|
| public abstract OptionMap getUndertowOptions() | |
| getWorker | back to summary |
|---|---|
| public abstract XnioWorker getWorker() Redeclares org. Doc from org. Get the worker for this channel.
| |
| isConnectSupported | back to summary |
|---|---|
protected abstract boolean isConnectSupported()
| |
| isContinueResponseSupported | back to summary |
|---|---|
public abstract boolean isContinueResponseSupported()
| |
| isOpen | back to summary |
|---|---|
| public abstract boolean isOpen() Redeclares java. Doc from java. Tells whether or not this channel is open.
| |
| isPushSupported | back to summary |
|---|---|
| public boolean isPushSupported() | |
| isRequestTrailerFieldsSupported | back to summary |
|---|---|
| public abstract boolean isRequestTrailerFieldsSupported() | |
| isUpgradeSupported | back to summary |
|---|---|
protected abstract boolean isUpgradeSupported()
| |
| maxEntitySizeUpdated | back to summary |
|---|---|
| protected abstract void maxEntitySizeUpdated(HttpServerExchange exchange) Callback that is invoked if the max entity size is updated.
| |
| pushResource | back to summary |
|---|---|
| public boolean pushResource(final String path, final HttpString method, final HeaderMap requestHeaders) Attempts to push a resource if this connection supports server push. Otherwise the request is ignored. Note that push is always done on a best effort basis, even if this method returns true it is possible that the remote endpoint will reset the stream
| |
| pushResource | back to summary |
|---|---|
| public boolean pushResource(final String path, final HttpString method, final HeaderMap requestHeaders, HttpHandler handler) Attempts to push a resource if this connection supports server push. Otherwise the request is ignored.
Note that push is always done on a best effort basis, even if this method returns true it is possible that
the remote endpoint will reset the stream.
The
| |
| sendOutOfBandResponse | back to summary |
|---|---|
| public abstract HttpServerExchange sendOutOfBandResponse(HttpServerExchange exchange) 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 abstract void setConnectListener(HttpUpgradeListener connectListener) | |
| setOption | back to summary |
|---|---|
| public abstract <T> T setOption(Option<T> option, T value) throws IllegalArgumentException, IOException Redeclares org. Doc from org. Set an option for this channel. Unsupported options are ignored.
| |
| setSslSessionInfo | back to summary |
|---|---|
| public abstract void setSslSessionInfo(SSLSessionInfo sessionInfo) 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 abstract void setUpgradeListener(HttpUpgradeListener upgradeListener) | |
| supportsOption | back to summary |
|---|---|
| public abstract boolean supportsOption(Option<?> option) Redeclares org. Doc from org. Determine whether an option is supported on this channel.
| |
| terminateRequestChannel | back to summary |
|---|---|
| public abstract void terminateRequestChannel(HttpServerExchange exchange) 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 |
|---|---|
| protected abstract StreamConnection upgradeChannel() Upgrade the connection, if allowed
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| closed | back to summary |
|---|---|
| public void closed(final ServerConnection connection) | |