public class SessionConfig extends DefaultWebSocketSessionConfig
HANDSHAKE_DECODER, HANDSHAKE_ENCODER, WEBSOCKET_DECODER, WEBSOCKET_ENCODER, WEBSOCKET_UTF8_VALIDATOR
Constructor and Description |
---|
SessionConfig() |
SessionConfig(URI requestUri) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptRequestUri(URI uri)
Determines if a received Web Socket handshake request with given request URI
should be accepted by the server session associated with this configuration
object.
|
SSLEngine |
createSSLEngine(boolean clientMode)
Creates a new SSLEngine for the SSL/DTLS session.
|
createCodecExecutor, customizeHeaders, customizeHeaders, getMaxFramePayloadLength, getMaxHandshakeFrameLength, getRequestOrigin, getRequestUri, getSupportedExtensions, getSupportedSubProtocols, handleCloseFrame, ignoreHostHeaderField, isClientMode, setHandleCloseFrame, setIgnoreHostHeaderField, setMaxFramePayloadLength, setMaxHandshakeFrameLength, setRequestOrigin, setSupportedExtensions, setSupportedSubProtocols, switchDecoders, switchEncoders
addSSLEngineBuilder, alwaysNotifiedBeingInPipeline, createSSLEngine, getDatagramServerSessionNoReopenPeriod, getEndingAction, getEngineHandshakeTimeout, getMaxInBufferCapacity, getMaxSSLApplicationBufferSizeRatio, getMaxSSLNetworkBufferSizeRatio, getMaxWriteSpinCount, getMinInBufferCapacity, getMinOutBufferCapacity, getSSLEngineBuilder, getThroughputCalculationInterval, ignorePossiblyIncompleteDatagrams, optimizeDataCopying, removeSSLEngineBuilder, setAlwaysNotifiedBeingInPipeline, setDatagramServerSessionNoReopenPeriod, setEndingAction, setEngineHandshakeTimeout, setIgnorePossiblyIncompleteDatagrams, setMaxInBufferCapacity, setMaxSSLApplicationBufferSizeRatio, setMaxSSLNetworkBufferSizeRatio, setMaxWriteSpinCount, setMinInBufferCapacity, setMinOutBufferCapacity, setOptimizeDataCopying, setThroughputCalculationInterval, setWaitForInboundCloseMessage, waitForInboundCloseMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
alwaysNotifiedBeingInPipeline, createSSLEngine, getDatagramServerSessionNoReopenPeriod, getEndingAction, getEngineHandshakeTimeout, getMaxInBufferCapacity, getMaxSSLApplicationBufferSizeRatio, getMaxSSLNetworkBufferSizeRatio, getMaxWriteSpinCount, getMinInBufferCapacity, getMinOutBufferCapacity, getThroughputCalculationInterval, ignorePossiblyIncompleteDatagrams, optimizeDataCopying, waitForInboundCloseMessage
public SessionConfig(URI requestUri)
public SessionConfig()
public SSLEngine createSSLEngine(boolean clientMode) throws SSLEngineCreateException
DefaultSessionConfig
By default, if no SSLEngine builder is configured for the specified
handshaking mode, it returns the engine created by calling the
SSLContext.getDefault().createSSLEngine()
createSSLEngine
in interface ISessionConfig
createSSLEngine
in class DefaultSessionConfig
clientMode
- true
if the engine should start its handshaking
in client modeSSLEngineCreateException
- when the SSL engine could not be createdpublic boolean acceptRequestUri(URI uri)
DefaultWebSocketSessionConfig
The requestUri
argument is built based on the Host header field
and the "Request-URI" of the GET method. If the Host header field is missed and the
IWebSocketSessionConfig.ignoreHostHeaderField()
returns true
the host-port part of the
URI will be set to the "null" string.
By default it always returns true
acceptRequestUri
in interface IWebSocketSessionConfig
acceptRequestUri
in class DefaultWebSocketSessionConfig
uri
- the request URI in the received Web Socket handshake
requesttrue
if the request URI should be acceptedCopyright © 2017–2022 SNF4J.ORG. All rights reserved.