Todo
how are we going to deal with attachments?
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final Http2Channel | |
| private final ConduitStreamSinkChannel | |
| private final ConduitStreamSourceChannel | |
| private boolean | |
| private HttpServerExchange | |
| private final StreamSinkConduit | |
| private final StreamSourceConduit | |
| private XnioBufferPoolAdaptor | poolAdaptor
References Deprecated
XnioBufferPoolAdaptor is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private final String | |
| private final Http2StreamSourceChannel | |
| private final Http2DataStreamSinkChannel | |
| private final HttpHandler | |
| private SSLSessionInfo | |
| private static final HttpString | |
| private final OptionMap |
| Access | Constructor and Description |
|---|---|
| public | Http2ServerConnection(Http2Channel channel, Http2StreamSourceChannel requestChannel, OptionMap undertowOptions, int bufferSize, HttpHandler rootHandler)
|
| public | Http2ServerConnection(Http2Channel channel, Http2DataStreamSinkChannel sinkChannel, OptionMap undertowOptions, int bufferSize, HttpHandler rootHandler)
Channel that is used when the request is already half closed |
| Modifier and Type | Method and Description |
|---|---|
| public void | addCloseListener(final ServerConnection.
The close listener listenerImplements abstract io. Adds a close listener, than will be invoked with the connection is closed |
| public <T> void | addToAttachmentList(AttachmentKey<AttachmentList<T>>
the attachment key key, T the value to add value)Overrides io. Implements io. Add a value to a list-typed attachment key. |
| 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 <T> T | getAttachment(AttachmentKey<T>
the attachment key key)Overrides io. Implements io. Get an attachment value. |
| public <T> List | getAttachmentList(AttachmentKey<? extends List<T>>
the attachment key key)Overrides io. Implements io. Gets a list attachment value. |
| 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 String | |
| protected ConduitStreamSinkChannel | |
| protected StreamSinkConduit | getSinkConduit(HttpServerExchange exchange, StreamSinkConduit conduit)
Implements abstract io. Gets the sink conduit that should be used for this request. |
| protected ConduitStreamSourceChannel | |
| public SSLSession | getSslSession()
Overrides io. Gets the SSLSession of the underlying connection, or null if SSL is not in use. |
| 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 | |
| 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 boolean | pushResource(String
The path of the resource path, HttpString The request method method, HeaderMap The request headers requestHeaders)Overrides io. Attempts to push a resource if this connection supports server push. |
| public boolean | pushResource(String
The path of the resource path, HttpString The request method method, HeaderMap The request headers requestHeaders, final HttpHandler handler)Overrides io. Attempts to push a resource if this connection supports server push. |
| public <T> T | putAttachment(AttachmentKey<T>
the attachment key key, T the new value value)Overrides io. Implements io. Set an attachment value. |
| public <T> T | removeAttachment(AttachmentKey<T>
the attachment key key)Overrides io. Implements io. Remove an attachment, returning its previous value. |
| 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.
|
| pack-priv void | |
| 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. |
| protected StreamConnection | upgradeChannel()
Implements abstract io. Upgrade the connection, if allowed |