Skip navigation links
A B C D E F G H I L M N O P R S T U V W 

A

ABNORMAL - Static variable in class org.snf4j.websocket.frame.CloseFrame
Reserved (value 1006) and MUST NOT be set as a status code in a Close control frame by an endpoint.
AbstractWebSocketHandler - Class in org.snf4j.websocket
Base implementation of the IWebSocketHandler interface.
AbstractWebSocketHandler() - Constructor for class org.snf4j.websocket.AbstractWebSocketHandler
Constructs an unnamed Web Socket handler for server sessions with the default configuration.
AbstractWebSocketHandler(URI) - Constructor for class org.snf4j.websocket.AbstractWebSocketHandler
Constructs an unnamed Web Socket handler for client sessions with the default configuration.
AbstractWebSocketHandler(String) - Constructor for class org.snf4j.websocket.AbstractWebSocketHandler
Constructs a named Web Socket handler for server sessions with the default configuration.
AbstractWebSocketHandler(String, URI) - Constructor for class org.snf4j.websocket.AbstractWebSocketHandler
Constructs a named Web Socket handler for client sessions with the default configuration.
AbstractWebSocketHandler(IWebSocketSessionConfig) - Constructor for class org.snf4j.websocket.AbstractWebSocketHandler
Constructs an unnamed Web Socket handler with the specified configuration.
AbstractWebSocketHandler(String, IWebSocketSessionConfig) - Constructor for class org.snf4j.websocket.AbstractWebSocketHandler
Constructs a named Web Socket handler with the specified configuration.
AbstractWebSocketSessionFactory - Class in org.snf4j.websocket
Base implementation of the IStreamSessionFactory interface for the Web Socket sessions.
AbstractWebSocketSessionFactory() - Constructor for class org.snf4j.websocket.AbstractWebSocketSessionFactory
Constructs a factory that creates the basic Web Socket sessions.
AbstractWebSocketSessionFactory(boolean) - Constructor for class org.snf4j.websocket.AbstractWebSocketSessionFactory
Constructs a factory that creates Web Socket sessions of the given type (basic or SSL/TLS).
acceptOffer(List<String>) - Method in class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
 
acceptOffer(List<String>) - Method in interface org.snf4j.websocket.extensions.IExtension
Called by the Web Socket server to accept the received extension negotiation offer.
acceptRequestUri(URI) - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Determines if a received Web Socket handshake request with given request URI should be accepted by the server session associated with this configuration object.
acceptRequestUri(URI) - Method in interface org.snf4j.websocket.IWebSocketSessionConfig
Determines if a received Web Socket handshake request with given request URI should be accepted by the server session associated with this configuration object.
added(ISession, ICodecPipeline) - Method in class org.snf4j.websocket.handshake.HandshakeEncoder
 
addFragment(byte[]) - Method in class org.snf4j.websocket.frame.AggregatedBinaryFrame
 
addFragment(byte[]) - Method in class org.snf4j.websocket.frame.AggregatedTextFrame
Adds a new payload data fragment for future aggregation.
addFragment(byte[]) - Method in interface org.snf4j.websocket.frame.IAggregatedFrame
Adds a new payload data fragment for future aggregation.
addValue(String, String) - Method in class org.snf4j.websocket.handshake.HandshakeFrame
Adds a value of the header field identified by the specified name.
AggregatedBinaryFrame - Class in org.snf4j.websocket.frame
Aggregated Web Socket binary frame.
AggregatedBinaryFrame(boolean, int, byte[]) - Constructor for class org.snf4j.websocket.frame.AggregatedBinaryFrame
Constructs an aggregated Web Socket binary frame.
AggregatedTextFrame - Class in org.snf4j.websocket.frame
Aggregated Web Socket text frame.
AggregatedTextFrame(boolean, int, byte[]) - Constructor for class org.snf4j.websocket.frame.AggregatedTextFrame
Constructs an aggregated Web Socket text frame.
available(ISession, ByteBuffer, boolean) - Method in class org.snf4j.websocket.frame.FrameDecoder
 
available(ISession, byte[], int, int) - Method in class org.snf4j.websocket.frame.FrameDecoder
 
available(ISession, ByteBuffer, boolean) - Method in class org.snf4j.websocket.handshake.HandshakeDecoder
 
available(ISession, byte[], int, int) - Method in class org.snf4j.websocket.handshake.HandshakeDecoder
 

B

BAD_GATEWAY - Static variable in class org.snf4j.websocket.frame.CloseFrame
Indicates (value 1014) that the server was acting as a gateway or proxy and received an invalid response from the upstream server.
BinaryFrame - Class in org.snf4j.websocket.frame
Web Socket binary frame.
BinaryFrame(boolean, int, byte[]) - Constructor for class org.snf4j.websocket.frame.BinaryFrame
Constructs a Web Socket binary frame.
BinaryFrame(byte[]) - Constructor for class org.snf4j.websocket.frame.BinaryFrame
Constructs a Web Socket binary frame.
BinaryFrame() - Constructor for class org.snf4j.websocket.frame.BinaryFrame
Constructs an empty Web Socket binary frame.

C

close(int) - Method in interface org.snf4j.websocket.IWebSocketSession
Writes the Web Socket close frame with given status code and then gently closes this session.
close(int, String) - Method in interface org.snf4j.websocket.IWebSocketSession
Writes the Web Socket close frame with given status code and reason and then gently closes this session.
close(int) - Method in class org.snf4j.websocket.SSLWebSocketSession
 
close(int, String) - Method in class org.snf4j.websocket.SSLWebSocketSession
 
close(int) - Method in class org.snf4j.websocket.WebSocketSession
 
close(int, String) - Method in class org.snf4j.websocket.WebSocketSession
 
closed(ServerSocketChannel) - Method in class org.snf4j.websocket.AbstractWebSocketSessionFactory
 
CloseFrame - Class in org.snf4j.websocket.frame
Web Socket connection close frame.
CloseFrame(int, byte[]) - Constructor for class org.snf4j.websocket.frame.CloseFrame
Constructs a Web Socket connection close frame.
CloseFrame(byte[]) - Constructor for class org.snf4j.websocket.frame.CloseFrame
Constructs a Web Socket connection close frame with all reserved bits cleared.
CloseFrame() - Constructor for class org.snf4j.websocket.frame.CloseFrame
Constructs an empty Web Socket connection close frame with all reserved bits cleared.
CloseFrame(int, int) - Constructor for class org.snf4j.websocket.frame.CloseFrame
Constructs a Web Socket connection close frame with the specified status code.
CloseFrame(int) - Constructor for class org.snf4j.websocket.frame.CloseFrame
Constructs a Web Socket connection close frame with the specified status code and with all reserved bits cleared.
CloseFrame(int, int, String) - Constructor for class org.snf4j.websocket.frame.CloseFrame
Constructs a Web Socket connection close frame with the specified status code and reason text.
CloseFrame(int, String) - Constructor for class org.snf4j.websocket.frame.CloseFrame
Constructs a Web Socket connection close frame with the specified status code, reason text and with all reserved bit cleared.
ContinuationFrame - Class in org.snf4j.websocket.frame
Web Socket continuation frame containing continuation text or binary data.
ContinuationFrame(boolean, int, byte[]) - Constructor for class org.snf4j.websocket.frame.ContinuationFrame
Constructs a Web Socket continuation frame containing binary data.
ContinuationFrame(byte[]) - Constructor for class org.snf4j.websocket.frame.ContinuationFrame
Constructs a Web Socket continuation frame containing binary data.
ContinuationFrame() - Constructor for class org.snf4j.websocket.frame.ContinuationFrame
Constructs an empty Web Socket continuation frame.
ContinuationFrame(boolean, int, String) - Constructor for class org.snf4j.websocket.frame.ContinuationFrame
Constructs a Web Socket continuation frame containing text data.
ContinuationFrame(String) - Constructor for class org.snf4j.websocket.frame.ContinuationFrame
Constructs a Web Socket continuation frame containing text data.
ControlFrame - Class in org.snf4j.websocket.frame
Base class for all Web Socket control frames.
ControlFrame(Opcode, int, byte[]) - Constructor for class org.snf4j.websocket.frame.ControlFrame
Constructs a generic Web Socket control frame.
ControlFrame(Opcode, byte[]) - Constructor for class org.snf4j.websocket.frame.ControlFrame
Constructs a generic Web Socket control frame with all reserved bits cleared.
create(SocketChannel) - Method in class org.snf4j.websocket.AbstractWebSocketSessionFactory
Creates a Web Socket session for a newly accepted connection.
createCodecExecutor() - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
 
createHandler(SocketChannel) - Method in class org.snf4j.websocket.AbstractWebSocketSessionFactory
Creates a Web Socket handler for a newly accepted connection.
customizeHeaders(HandshakeRequest) - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Called when the Web Socket handshake request is ready to be sent and can be now customized, if needed.
customizeHeaders(HandshakeResponse) - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Called when the Web Socket handshake response is ready to be sent and can be now customized, if needed.
customizeHeaders(HandshakeRequest) - Method in interface org.snf4j.websocket.IWebSocketSessionConfig
Called when the Web Socket handshake request is ready to be sent and can be now customized, if needed.
customizeHeaders(HandshakeResponse) - Method in interface org.snf4j.websocket.IWebSocketSessionConfig
Called when the Web Socket handshake response is ready to be sent and can be now customized, if needed.

D

DataFrame - Class in org.snf4j.websocket.frame
Base class for all Web Socket data frames.
DataFrame(Opcode, boolean, int, byte[]) - Constructor for class org.snf4j.websocket.frame.DataFrame
Constructs a generic Web Socket data frame.
DataFrame(Opcode, byte[]) - Constructor for class org.snf4j.websocket.frame.DataFrame
Constructs a generic Web Socket data frame being the final fragment in a message and with all reserved bits cleared.
decode(ISession, Frame, List<Frame>) - Method in class org.snf4j.websocket.extensions.compress.PerMessageDeflateDecoder
 
decode(ISession, Frame, List<Frame>) - Method in class org.snf4j.websocket.frame.FrameAggregator
 
decode(ISession, ByteBuffer, List<Frame>) - Method in class org.snf4j.websocket.frame.FrameDecoder
 
decode(ISession, Frame, List<Frame>) - Method in class org.snf4j.websocket.frame.FrameUtf8Validator
 
decode(ISession, byte[], List<HandshakeFrame>) - Method in class org.snf4j.websocket.handshake.HandshakeDecoder
 
DefaultWebSocketSessionConfig - Class in org.snf4j.websocket
Default configuration for the Web Socket session.
DefaultWebSocketSessionConfig(URI) - Constructor for class org.snf4j.websocket.DefaultWebSocketSessionConfig
Constructs the default Web Socket configuration for a client session
DefaultWebSocketSessionConfig() - Constructor for class org.snf4j.websocket.DefaultWebSocketSessionConfig
Constructs the default Web Socket configuration for a server session

E

encode(ISession, Frame, List<Frame>) - Method in class org.snf4j.websocket.extensions.compress.PerMessageDeflateEncoder
 
encode(ISession, Frame, List<ByteBuffer>) - Method in class org.snf4j.websocket.frame.FrameEncoder
 
encode(ISession, HandshakeFrame, List<ByteBuffer>) - Method in class org.snf4j.websocket.handshake.HandshakeEncoder
 
event(ISession, SessionEvent) - Method in class org.snf4j.websocket.handshake.HandshakeEncoder
 
exception(ServerSocketChannel, Throwable) - Method in class org.snf4j.websocket.AbstractWebSocketSessionFactory
 

F

findByValue(int) - Static method in enum org.snf4j.websocket.frame.Opcode
Finds an Opcode by its numeric value.
Frame - Class in org.snf4j.websocket.frame
Base class for all Web Socket frames.
Frame(Opcode, boolean, int, byte[]) - Constructor for class org.snf4j.websocket.frame.Frame
Constructs a generic Web Socket frame.
FrameAggregator - Class in org.snf4j.websocket.frame
Aggregates fragmented Web Socket frames into complete (final) frames.
FrameAggregator(int) - Constructor for class org.snf4j.websocket.frame.FrameAggregator
Construct a Web Socket frame aggregator.
FrameDecoder - Class in org.snf4j.websocket.frame
Decodes a Web Socket frame from bytes in the protocol version 13 format.
FrameDecoder(boolean, boolean, long) - Constructor for class org.snf4j.websocket.frame.FrameDecoder
Constructs a Web Socket decoder.
FrameEncoder - Class in org.snf4j.websocket.frame
Encodes a Web Socket frame into bytes in the protocol version 13 format.
FrameEncoder(boolean) - Constructor for class org.snf4j.websocket.frame.FrameEncoder
Constructs a Web Socket encoder.
FrameUtf8Validator - Class in org.snf4j.websocket.frame
Validates the UTF-8 encoding correctness of the payload data in Web Socket text frames and in Web Socket continuation frames being theirs continuation.
FrameUtf8Validator() - Constructor for class org.snf4j.websocket.frame.FrameUtf8Validator
 

G

getCloseType() - Method in exception org.snf4j.websocket.frame.InvalidFrameException
 
getCloseType() - Method in exception org.snf4j.websocket.handshake.InvalidHandshakeException
 
getClosingCause() - Method in exception org.snf4j.websocket.frame.InvalidFrameException
 
getClosingCause() - Method in exception org.snf4j.websocket.handshake.InvalidHandshakeException
 
getClosingReason() - Method in class org.snf4j.websocket.handshake.Handshaker
 
getClosingReason() - Method in interface org.snf4j.websocket.handshake.IHandshaker
Returns a detailed reason why the handshake phase could not finished successfully.
getConfig() - Method in class org.snf4j.websocket.AbstractWebSocketHandler
Returns the Web Socket configuration object that will be used to configure the behavior of the associated session.
getConfig() - Method in interface org.snf4j.websocket.IWebSocketHandler
 
getExtension(String) - Method in class org.snf4j.websocket.handshake.Handshaker
 
getExtension(String) - Method in interface org.snf4j.websocket.handshake.IHandshaker
Returns the negotiated extension identified by the specified name.
getExtensionNames() - Method in class org.snf4j.websocket.handshake.Handshaker
 
getExtensionNames() - Method in interface org.snf4j.websocket.handshake.IHandshaker
Returns the names of all extensions that have been negotiated
getExtensions() - Method in class org.snf4j.websocket.handshake.Handshaker
 
getExtensions() - Method in interface org.snf4j.websocket.handshake.IHandshaker
Returns all extensions that have been negotiated
getFragments() - Method in class org.snf4j.websocket.frame.AggregatedBinaryFrame
 
getFragments() - Method in class org.snf4j.websocket.frame.AggregatedTextFrame
 
getFragments() - Method in interface org.snf4j.websocket.frame.IAggregatedFrame
Returns all payload data fragments already stored in this frame.
getGroupId() - Method in class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
Returns an object that identifies the group to which the extension belongs.
getGroupId() - Method in interface org.snf4j.websocket.extensions.IExtension
Returns an object that identifies the group to which the extension belongs.
getHandshaker() - Method in interface org.snf4j.websocket.IWebSocketSession
Returns the Web Socket handshaker associated with this session.
getHandshaker() - Method in class org.snf4j.websocket.SSLWebSocketSession
 
getHandshaker() - Method in class org.snf4j.websocket.WebSocketSession
 
getInboundType() - Method in class org.snf4j.websocket.frame.FrameAggregator
 
getInboundType() - Method in class org.snf4j.websocket.frame.FrameDecoder
 
getInboundType() - Method in class org.snf4j.websocket.frame.FrameEncoder
 
getInboundType() - Method in class org.snf4j.websocket.frame.FrameUtf8Validator
 
getInboundType() - Method in class org.snf4j.websocket.handshake.HandshakeDecoder
 
getInboundType() - Method in class org.snf4j.websocket.handshake.HandshakeEncoder
 
getMaxFramePayloadLength() - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Determines the maximum length of the payload in the decoded Web Socket frames.
getMaxFramePayloadLength() - Method in interface org.snf4j.websocket.IWebSocketSessionConfig
Determines the maximum length of the payload in the decoded Web Socket frames.
getMaxHandshakeFrameLength() - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Determines the maximum length of the decoded Web Socket handshake frames.
getMaxHandshakeFrameLength() - Method in interface org.snf4j.websocket.IWebSocketSessionConfig
Determines the maximum length of the decoded Web Socket handshake frames.
getName() - Method in class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
Returns the name of the extension.
getName() - Method in interface org.snf4j.websocket.extensions.IExtension
Returns the name of the extension.
getNames() - Method in class org.snf4j.websocket.handshake.HandshakeFrame
Returns names of header fields already added to this frame.
getOpcode() - Method in class org.snf4j.websocket.frame.Frame
Returns the type (opcode) of this frame.
getOutboundType() - Method in class org.snf4j.websocket.frame.FrameAggregator
 
getOutboundType() - Method in class org.snf4j.websocket.frame.FrameDecoder
 
getOutboundType() - Method in class org.snf4j.websocket.frame.FrameEncoder
 
getOutboundType() - Method in class org.snf4j.websocket.frame.FrameUtf8Validator
 
getOutboundType() - Method in class org.snf4j.websocket.handshake.HandshakeDecoder
 
getOutboundType() - Method in class org.snf4j.websocket.handshake.HandshakeEncoder
 
getPayload() - Method in class org.snf4j.websocket.frame.AggregatedBinaryFrame
 
getPayload() - Method in class org.snf4j.websocket.frame.AggregatedTextFrame
 
getPayload() - Method in class org.snf4j.websocket.frame.Frame
Returns the payload data in this frame.
getPayload() - Method in interface org.snf4j.websocket.frame.IAggregatedFrame
Returns the aggregated payload data from all payload data fragments already stored in this frame.
getPayloadLength() - Method in class org.snf4j.websocket.frame.AggregatedBinaryFrame
 
getPayloadLength() - Method in class org.snf4j.websocket.frame.AggregatedTextFrame
 
getPayloadLength() - Method in class org.snf4j.websocket.frame.Frame
Return the length of the payload data in this frame.
getPayloadLength() - Method in interface org.snf4j.websocket.frame.IAggregatedFrame
Returns the total length of all payload data fragments already stored in this frame.
getReadyFuture() - Method in class org.snf4j.websocket.SSLWebSocketSession
Gets the future that can be use to wait for the completion of the Web Socket handshake phase.
getReadyFuture() - Method in class org.snf4j.websocket.WebSocketSession
Gets the future that can be use to wait for the completion of the Web Socket handshake phase.
getReason() - Method in class org.snf4j.websocket.frame.CloseFrame
Returns the closing reason text in this frame.
getReason() - Method in class org.snf4j.websocket.handshake.HandshakeResponse
Return the reason text of the HTTP response
getRequestOrigin() - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Determines the value of the Origin header field in the client Web Socket handshake request.
getRequestOrigin() - Method in interface org.snf4j.websocket.IWebSocketSessionConfig
Determines the value of the Origin header field in the client Web Socket handshake request.
getRequestUri() - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
 
getRequestUri() - Method in interface org.snf4j.websocket.IWebSocketSessionConfig
Determines the request URI (the server endpoint) in the client Web Socket handshake request.
getRsvBits() - Method in class org.snf4j.websocket.frame.Frame
Returns the reserved bits for extensions or future versions.
getStatus() - Method in class org.snf4j.websocket.frame.CloseFrame
Returns the closing status code in this frame.
getStatus() - Method in class org.snf4j.websocket.handshake.HandshakeResponse
Return the status code of the HTTP response
getSubProtocol() - Method in class org.snf4j.websocket.handshake.Handshaker
 
getSubProtocol() - Method in interface org.snf4j.websocket.handshake.IHandshaker
Return the negotiated sub-protocol.
getSupportedExtensions() - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Determines the supported extensions for both the server and client Web Socket sessions.
getSupportedExtensions() - Method in interface org.snf4j.websocket.IWebSocketSessionConfig
Determines the supported extensions for both the server and client Web Socket sessions.
getSupportedSubProtocols() - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Determines the names of supported subprotocols for both the server and client Web Socket sessions.
getSupportedSubProtocols() - Method in interface org.snf4j.websocket.IWebSocketSessionConfig
Determines the names of supported subprotocols for both the server and client Web Socket sessions.
getText() - Method in class org.snf4j.websocket.frame.ContinuationFrame
Returns the text data in this frame.
getText() - Method in class org.snf4j.websocket.frame.TextFrame
Returns the text data in this frame.
getUri() - Method in class org.snf4j.websocket.handshake.Handshaker
 
getUri() - Method in class org.snf4j.websocket.handshake.HandshakeRequest
Returns the request URI of the GET method in the HTTP request frame.
getUri() - Method in interface org.snf4j.websocket.handshake.IHandshaker
The URI identifying the Web Socket connection for both the client and server sessions.
getValue(String) - Method in class org.snf4j.websocket.handshake.HandshakeFrame
Returns the value of the header field identified by the specified name.
getWebSocketHandler() - Method in interface org.snf4j.websocket.IWebSocketSession
Returns the Web Socket handler associated with this session
getWebSocketHandler() - Method in class org.snf4j.websocket.SSLWebSocketSession
 
getWebSocketHandler() - Method in class org.snf4j.websocket.WebSocketSession
 
GOING_AWAY - Static variable in class org.snf4j.websocket.frame.CloseFrame
Indicates (value 1001) that an endpoint is "going away", such as a server going down or a browser having navigated away from a page.
GroupIdentifier - Enum in org.snf4j.websocket.extensions
An enum that represents predefined identifiers for extension groups.

H

handleCloseFrame() - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Determines if the received Web Socket close frames should be handled automatically.
handleCloseFrame() - Method in interface org.snf4j.websocket.IWebSocketSessionConfig
Determines if the received Web Socket close frames should be handled automatically.
handshake() - Method in class org.snf4j.websocket.handshake.Handshaker
 
handshake(HandshakeFrame) - Method in class org.snf4j.websocket.handshake.Handshaker
 
handshake() - Method in interface org.snf4j.websocket.handshake.IHandshaker
Initiates the handshake phase by Web Socket clients.
handshake(HandshakeFrame) - Method in interface org.snf4j.websocket.handshake.IHandshaker
Processes the handshake frame received from a Web Socket client.
HANDSHAKE_DECODER - Static variable in interface org.snf4j.websocket.IWebSocketSessionConfig
The default key identifying the handshake decoder HandshakeDecoder in the default codec pipeline created by the SNF4J framework.
HANDSHAKE_ENCODER - Static variable in interface org.snf4j.websocket.IWebSocketSessionConfig
The default key identifying the handshake encoder HandshakeEncoder in the default codec pipeline created by the SNF4J framework.
HandshakeDecoder - Class in org.snf4j.websocket.handshake
Decodes a Web Socket handshake frame from bytes in the protocol version 13 format.
HandshakeDecoder(boolean, int, int) - Constructor for class org.snf4j.websocket.handshake.HandshakeDecoder
Constructs a Web Socket handshake decoder.
HandshakeDecoder(boolean, int) - Constructor for class org.snf4j.websocket.handshake.HandshakeDecoder
Constructs a Web Socket handshake decoder with the default maximum number (50) of lines of a handshake frame to be decoded in a single pass.
HandshakeDecoder(boolean) - Constructor for class org.snf4j.websocket.handshake.HandshakeDecoder
Constructs a Web Socket handshake decoder with the default maximum length (65536) of a handshake frame and the default maximum number (50) of lines of a handshake frame to be decoded in a single pass.
HandshakeEncoder - Class in org.snf4j.websocket.handshake
Encodes a Web Socket handshake frame into bytes in the protocol version 13 format.
HandshakeEncoder(boolean) - Constructor for class org.snf4j.websocket.handshake.HandshakeEncoder
Constructs a Web Socket handshake encoder.
HandshakeFrame - Class in org.snf4j.websocket.handshake
Base class for Web Socket handshake frames.
HandshakeFrame() - Constructor for class org.snf4j.websocket.handshake.HandshakeFrame
Construct a base Web Socket handshake frame.
Handshaker - Class in org.snf4j.websocket.handshake
Default handshaker responsible for processing of the Web Socket handshake phase.
Handshaker(IWebSocketSessionConfig, boolean) - Constructor for class org.snf4j.websocket.handshake.Handshaker
Constructs the handshaker.
HandshakeRequest - Class in org.snf4j.websocket.handshake
A Web Socket handshake request frame.
HandshakeRequest(String) - Constructor for class org.snf4j.websocket.handshake.HandshakeRequest
Constructs a Web Socket handshake request frame.
HandshakeResponse - Class in org.snf4j.websocket.handshake
A Web Socket handshake response frame.
HandshakeResponse(int, String) - Constructor for class org.snf4j.websocket.handshake.HandshakeResponse
Constructs a Web Socket handshake response frame.
hasExtensions() - Method in class org.snf4j.websocket.handshake.Handshaker
 
hasExtensions() - Method in interface org.snf4j.websocket.handshake.IHandshaker
Tells is any extension has been negotiated
hasValue(String) - Method in class org.snf4j.websocket.handshake.HandshakeFrame
Checks if the header field identified by the specified name exists.

I

IAggregatedFrame - Interface in org.snf4j.websocket.frame
An aggregated Web Socket frame.
IExtension - Interface in org.snf4j.websocket.extensions
A Web Socket extension.
ignoreHostHeaderField() - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Determines if the server session associated with this configuration object should ignore missing the Host header field in the received Web Socket handshake request.
ignoreHostHeaderField() - Method in interface org.snf4j.websocket.IWebSocketSessionConfig
Determines if the server session associated with this configuration object should ignore missing the Host header field in the received Web Socket handshake request.
IHandshaker - Interface in org.snf4j.websocket.handshake
A handshaker responsible for processing of the Web Socket handshake phase.
InvalidExtensionException - Exception in org.snf4j.websocket.extensions
Indicates problems with decoding or validation of Web Socket extensions.
InvalidExtensionException() - Constructor for exception org.snf4j.websocket.extensions.InvalidExtensionException
Constructs a new exception without the detail message.
InvalidExtensionException(String) - Constructor for exception org.snf4j.websocket.extensions.InvalidExtensionException
Constructs a new exception with the specified detail message.
InvalidExtensionException(String, Throwable) - Constructor for exception org.snf4j.websocket.extensions.InvalidExtensionException
Constructs a new exception with the specified detail message and cause.
InvalidExtensionException(Throwable) - Constructor for exception org.snf4j.websocket.extensions.InvalidExtensionException
Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
InvalidFrameException - Exception in org.snf4j.websocket.frame
Indicates problems with decoding or validation of Web Socket frames.
InvalidFrameException(String, Throwable, boolean) - Constructor for exception org.snf4j.websocket.frame.InvalidFrameException
Constructs a new exception with the specified detail message, cause and session closing type.
InvalidFrameException(Throwable, boolean) - Constructor for exception org.snf4j.websocket.frame.InvalidFrameException
Constructs a new exception with the specified cause and session closing type.
InvalidFrameException(String, Throwable) - Constructor for exception org.snf4j.websocket.frame.InvalidFrameException
Constructs a new exception with the specified detail message, cause and with the gentle closing type.
InvalidFrameException(String) - Constructor for exception org.snf4j.websocket.frame.InvalidFrameException
Constructs a new exception with the specified detail message and with the gentle closing type.
InvalidFrameException(Throwable) - Constructor for exception org.snf4j.websocket.frame.InvalidFrameException
Constructs a new exception with the specified cause and with the gentle closing type.
InvalidFrameException() - Constructor for exception org.snf4j.websocket.frame.InvalidFrameException
Constructs a new exception without the detail message and with the gentle closing type.
InvalidHandshakeException - Exception in org.snf4j.websocket.handshake
Indicates problems with decoding or validation of Web Socket handshake frames.
InvalidHandshakeException(String, Throwable, boolean) - Constructor for exception org.snf4j.websocket.handshake.InvalidHandshakeException
Constructs a new exception with the specified detail message, cause and session closing type.
InvalidHandshakeException(Throwable, boolean) - Constructor for exception org.snf4j.websocket.handshake.InvalidHandshakeException
Constructs a new exception with the specified cause and session closing type.
InvalidHandshakeException(String, Throwable) - Constructor for exception org.snf4j.websocket.handshake.InvalidHandshakeException
Constructs a new exception with the specified detail message, cause and with the default closing type.
InvalidHandshakeException(String) - Constructor for exception org.snf4j.websocket.handshake.InvalidHandshakeException
Constructs a new exception with the specified detail message and with the default closing type.
InvalidHandshakeException() - Constructor for exception org.snf4j.websocket.handshake.InvalidHandshakeException
Constructs a new exception without the detail message and with the default closing type.
InvalidHandshakeException(Throwable) - Constructor for exception org.snf4j.websocket.handshake.InvalidHandshakeException
Constructs a new exception with the specified cause and with the default closing type.
isClientMode() - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Tells if this configuration is for a client or server session.
isClientMode() - Method in class org.snf4j.websocket.handshake.Handshaker
 
isClientMode() - Method in interface org.snf4j.websocket.handshake.IHandshaker
Tells the mode (server/client) this handshaker is operating
isClosing() - Method in class org.snf4j.websocket.handshake.Handshaker
 
isClosing() - Method in interface org.snf4j.websocket.handshake.IHandshaker
Tells if this handshake is closing without successfully finishing the handshake phase.
isControl() - Method in enum org.snf4j.websocket.frame.Opcode
Tells if this Opcode is for a control frame.
isFinalFragment() - Method in class org.snf4j.websocket.frame.Frame
Tells if this frame is the final fragment in a message.
isFinished() - Method in class org.snf4j.websocket.handshake.Handshaker
 
isFinished() - Method in interface org.snf4j.websocket.handshake.IHandshaker
Tells if this handshake has successfully finished the handshake phase.
isRsvBit1() - Method in class org.snf4j.websocket.frame.Frame
Tells if the reserved bit 1 is set
isRsvBit2() - Method in class org.snf4j.websocket.frame.Frame
Tells if the reserved bit 2 is set
isRsvBit3() - Method in class org.snf4j.websocket.frame.Frame
Tells if the reserved bit 3 is set
IWebSocketHandler - Interface in org.snf4j.websocket
Extends the IStreamHandler interface to cover the Web Socket functionalities.
IWebSocketSession - Interface in org.snf4j.websocket
Extends the IStreamSession interface to cover the Web Socket functionalities.
IWebSocketSessionConfig - Interface in org.snf4j.websocket
A configuration for associated Web Socket session.

L

length(Frame) - Method in class org.snf4j.websocket.frame.FrameEncoder
 

M

MISSED_EXTENSION - Static variable in class org.snf4j.websocket.frame.CloseFrame
Indicates (value 1010) that an endpoint (client) is terminating the connection because it has expected the server to negotiate one or more extension, but the server didn't return them in the response message of the WebSocket handshake.

N

NO_CODE - Static variable in class org.snf4j.websocket.frame.CloseFrame
Reserved (value 1005) and MUST NOT be set as a status code in a Close control frame by an endpoint.
NON_UTF8 - Static variable in class org.snf4j.websocket.frame.CloseFrame
Indicates (value 1007) that an endpoint is terminating the connection because it has received data within a message that was not consistent with the type of the message (e.g., non-UTF-8 [RFC3629] data within a text message).
NORMAL - Static variable in class org.snf4j.websocket.frame.CloseFrame
Indicates (value 1000) a normal closure, meaning that the purpose for which the connection was established has been fulfilled.
NOT_ACCEPTED - Static variable in class org.snf4j.websocket.frame.CloseFrame
Indicates (value 1003) that an endpoint is terminating the connection because it has received a type of data it cannot accept (e.g., an endpoint that understands only text data MAY send this if it receives a binary message).

O

offer() - Method in class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
 
offer() - Method in interface org.snf4j.websocket.extensions.IExtension
Called by the Web Socket client to prepare the extension negotiation offer.
Opcode - Enum in org.snf4j.websocket.frame
An enum that represents types of the Web Socket frames.
org.snf4j.websocket - package org.snf4j.websocket
Provides main interfaces and classes implementing the functionalities of the Web Socket protocol.
org.snf4j.websocket.extensions - package org.snf4j.websocket.extensions
Provides interfaces and classes for implementation of Web Socket extensions.
org.snf4j.websocket.extensions.compress - package org.snf4j.websocket.extensions.compress
Provides interfaces and classes implementing the Web Socket compress extensions.
org.snf4j.websocket.frame - package org.snf4j.websocket.frame
Provides interfaces and classes for the Web Socket frames and related codecs.
org.snf4j.websocket.handshake - package org.snf4j.websocket.handshake
Provides interfaces and classes for the Web Socket handshake frames and related codecs.

P

payload - Variable in class org.snf4j.websocket.frame.Frame
Payload data
PERMESSAGE_DEFLATE_DECODER - Static variable in class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
The default key identifying the pre-message deflate decoder PerMessageDeflateDecoder in the default codec pipeline created by the SNF4J framework.
PERMESSAGE_DEFLATE_ENCODER - Static variable in class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
The default key identifying the pre-message deflate encoder PerMessageDeflateEncoder in the default codec pipeline created by the SNF4J framework.
PerMessageDeflateDecoder - Class in org.snf4j.websocket.extensions.compress
The per-message implementation of deflate decoder (decompressor).
PerMessageDeflateDecoder(boolean, int) - Constructor for class org.snf4j.websocket.extensions.compress.PerMessageDeflateDecoder
Constructs a per-message deflate decoder with specified context takeover control and minimum upper bound on the decompressed size.
PerMessageDeflateDecoder(boolean) - Constructor for class org.snf4j.websocket.extensions.compress.PerMessageDeflateDecoder
Constructs a per-message deflate decoder with specified context takeover control.
PerMessageDeflateEncoder - Class in org.snf4j.websocket.extensions.compress
The per-message implementation of deflate encoder (compressor).
PerMessageDeflateEncoder(int, boolean) - Constructor for class org.snf4j.websocket.extensions.compress.PerMessageDeflateEncoder
Constructs a per-message deflate encoder with specified compression level and the context takeover control.
PerMessageDeflateExtension - Class in org.snf4j.websocket.extensions.compress
The WebSocket Per-Message Compression Extension as described in RFC 7692
PerMessageDeflateExtension(int, int, PerMessageDeflateExtension.NoContext, PerMessageDeflateExtension.NoContext) - Constructor for class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
Constructs a pre-message deflate extension with specified compression level, minimum upper bound on the decompressed size and the context takeover control options for compression/decompression.
PerMessageDeflateExtension(int, PerMessageDeflateExtension.NoContext, PerMessageDeflateExtension.NoContext) - Constructor for class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
Constructs a pre-message deflate extension with specified compression level and the context takeover control options for compression/decompression.
PerMessageDeflateExtension(int) - Constructor for class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
Constructs a pre-message deflate extension with specified compression level and the OPTIONAL context takeover control option for compression/decompression.
PerMessageDeflateExtension() - Constructor for class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
Constructs a pre-message deflate extension with default compression level (6) and the OPTIONAL context takeover control option for compression/decompression.
PerMessageDeflateExtension.NoContext - Enum in org.snf4j.websocket.extensions.compress
The context takeover control options
PingFrame - Class in org.snf4j.websocket.frame
Web Socket ping frame.
PingFrame(int, byte[]) - Constructor for class org.snf4j.websocket.frame.PingFrame
Constructs a Web Socket ping frame.
PingFrame(byte[]) - Constructor for class org.snf4j.websocket.frame.PingFrame
Constructs a Web Socket ping frame with all reserved bits cleared.
PingFrame() - Constructor for class org.snf4j.websocket.frame.PingFrame
Constructs an empty Web Socket ping frame with all reserved bits cleared.
POLICY_VALIDATION - Static variable in class org.snf4j.websocket.frame.CloseFrame
Indicates (value 1008) that an endpoint is terminating the connection because it has received a message that violates its policy.
PongFrame - Class in org.snf4j.websocket.frame
Web Socket pong frame.
PongFrame(int, byte[]) - Constructor for class org.snf4j.websocket.frame.PongFrame
Constructs a Web Socket pong frame.
PongFrame(byte[]) - Constructor for class org.snf4j.websocket.frame.PongFrame
Constructs a Web Socket pong frame with all reserved bits cleared.
PongFrame() - Constructor for class org.snf4j.websocket.frame.PongFrame
Constructs an empty Web Socket pong frame with all reserved bits cleared.
PROTOCOL_ERROR - Static variable in class org.snf4j.websocket.frame.CloseFrame
Indicates (value 1002) that an endpoint is terminating the connection due to a protocol error.

R

registered(ServerSocketChannel) - Method in class org.snf4j.websocket.AbstractWebSocketSessionFactory
 
removed(ISession, ICodecPipeline) - Method in class org.snf4j.websocket.handshake.HandshakeEncoder
 
response() - Method in class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
 
response() - Method in interface org.snf4j.websocket.extensions.IExtension
Called by the Web Socket server to prepare the extension negotiation response.
RSV1 - Static variable in class org.snf4j.websocket.frame.Frame
The reserved bit 1
RSV2 - Static variable in class org.snf4j.websocket.frame.Frame
The reserved bit 2
RSV3 - Static variable in class org.snf4j.websocket.frame.Frame
The reserved bit 3

S

SERVICE_OVERLOAD - Static variable in class org.snf4j.websocket.frame.CloseFrame
Indicates (value 1013) that the service is experiencing overload.
SERVICE_RESTART - Static variable in class org.snf4j.websocket.frame.CloseFrame
Indicates (value 1012) that the service is restarted.
setHandleCloseFrame(boolean) - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Configures if the received Web Socket close frames should be handled automatically.
setIgnoreHostHeaderField(boolean) - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Configures if the server session associated with this configuration object should ignore missing the Host header field in the received Web Socket handshake request.
setMaxFramePayloadLength(int) - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Sets the maximum length of the payload in the decoded Web Socket frames.
setMaxHandshakeFrameLength(int) - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Sets the maximum length of the decoded Web Socket handshake frames.
setRequestOrigin(String) - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Sets the value of the Origin header field in the client Web Socket handshake request.
setSession(ISession) - Method in class org.snf4j.websocket.handshake.Handshaker
 
setSession(ISession) - Method in interface org.snf4j.websocket.handshake.IHandshaker
Sets the session object this handshaker is associated with.
setSupportedExtensions(IExtension...) - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Sets the supported extensions for both the server and client Web Socket sessions.
setSupportedSubProtocols(String...) - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
Sets the names of supported subprotocols for both the server and client Web Socket sessions.
SSLWebSocketSession - Class in org.snf4j.websocket
The Secure Web Socket session implementing the WebSocket Protocol described in RFC 6455.
SSLWebSocketSession(String, SocketAddress, IWebSocketHandler, boolean) - Constructor for class org.snf4j.websocket.SSLWebSocketSession
Constructs a named Secure Web Socket session associated with a handler and a remote peer.
SSLWebSocketSession(SocketAddress, IWebSocketHandler, boolean) - Constructor for class org.snf4j.websocket.SSLWebSocketSession
Constructs a Secure Web Socket session associated with a handler and a remote peer.
SSLWebSocketSession(String, IWebSocketHandler, boolean) - Constructor for class org.snf4j.websocket.SSLWebSocketSession
Constructs a named Secure Web Socket session associated with a handler.
SSLWebSocketSession(IWebSocketHandler, boolean) - Constructor for class org.snf4j.websocket.SSLWebSocketSession
Constructs a Secure Web Socket session associated with a handler.
switchDecoders(ICodecPipeline, boolean) - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
 
switchDecoders(ICodecPipeline, boolean) - Method in interface org.snf4j.websocket.IWebSocketSessionConfig
Called when the decoders in the codec pipeline should be switched after finishing of the Web Socket handshake.
switchEncoders(ICodecPipeline, boolean) - Method in class org.snf4j.websocket.DefaultWebSocketSessionConfig
 
switchEncoders(ICodecPipeline, boolean) - Method in interface org.snf4j.websocket.IWebSocketSessionConfig
Called when the encoders in the codec pipeline should be switched after finishing of the Web Socket handshake.

T

TextFrame - Class in org.snf4j.websocket.frame
Web Socket text frame.
TextFrame(boolean, int, byte[]) - Constructor for class org.snf4j.websocket.frame.TextFrame
Constructs a Web Socket text frame containing binary data.
TextFrame(boolean, int, String) - Constructor for class org.snf4j.websocket.frame.TextFrame
Constructs a Web Socket text frame containing text data.
TextFrame(byte[]) - Constructor for class org.snf4j.websocket.frame.TextFrame
Constructs a Web Socket text frame containing binary data.
TextFrame(String) - Constructor for class org.snf4j.websocket.frame.TextFrame
Constructs a Web Socket text frame containing text data.
TextFrame() - Constructor for class org.snf4j.websocket.frame.TextFrame
Constructs an empty Web Socket text frame.
TLS_FAILURE - Static variable in class org.snf4j.websocket.frame.CloseFrame
Reserved (value 1015) and MUST NOT be set as a status code in a Close control frame by an endpoint.
TOO_BIG - Static variable in class org.snf4j.websocket.frame.CloseFrame
Indicates (1009) that an endpoint is terminating the connection because it has received a message that is too big for it to process.
toText(byte[]) - Static method in class org.snf4j.websocket.frame.AggregatedTextFrame
Returns a text created by decoding the specified array of bytes in the UTF-8 encoding.

U

UNEXPECTED_CONDITION - Static variable in class org.snf4j.websocket.frame.CloseFrame
Indicates (value 1011) that a server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.
updateDecoders(ICodecPipeline) - Method in class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
 
updateDecoders(ICodecPipeline) - Method in interface org.snf4j.websocket.extensions.IExtension
Called to update the decoder pipeline.
updateEncoders(ICodecPipeline) - Method in class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
 
updateEncoders(ICodecPipeline) - Method in interface org.snf4j.websocket.extensions.IExtension
Called to update the encoder pipeline.
updateExtensionDecoders(ICodecPipeline) - Method in class org.snf4j.websocket.handshake.Handshaker
 
updateExtensionDecoders(ICodecPipeline) - Method in interface org.snf4j.websocket.handshake.IHandshaker
Called to updated the pipeline decoders based on the negotiated extensions
updateExtensionEncoders(ICodecPipeline) - Method in class org.snf4j.websocket.handshake.Handshaker
 
updateExtensionEncoders(ICodecPipeline) - Method in interface org.snf4j.websocket.handshake.IHandshaker
Called to updated the pipeline encoders based on the negotiated extensions
updatePipeline(ICodecPipeline, IEncoder<Frame, Frame>) - Method in class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
 
updatePipeline(ICodecPipeline, IDecoder<Frame, Frame>) - Method in class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
 

V

validateResponse(List<String>) - Method in class org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension
 
validateResponse(List<String>) - Method in interface org.snf4j.websocket.extensions.IExtension
Called by the Web Socket client to validate the received extension negotiation response.
value() - Method in enum org.snf4j.websocket.frame.Opcode
Returns numeric value of this Opcode.
valueOf(String) - Static method in enum org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension.NoContext
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.snf4j.websocket.extensions.GroupIdentifier
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.snf4j.websocket.frame.Opcode
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.snf4j.websocket.extensions.compress.PerMessageDeflateExtension.NoContext
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.snf4j.websocket.extensions.GroupIdentifier
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.snf4j.websocket.frame.Opcode
Returns an array containing the constants of this enum type, in the order they are declared.

W

WEBSOCKET_DECODER - Static variable in interface org.snf4j.websocket.IWebSocketSessionConfig
The default key identifying the Web Socket frame decoder FrameDecoder in the default codec pipeline created by the SNF4J framework.
WEBSOCKET_ENCODER - Static variable in interface org.snf4j.websocket.IWebSocketSessionConfig
The default key identifying the Web Socket frame encoder FrameEncoder in the default codec pipeline created by the SNF4J framework.
WEBSOCKET_UTF8_VALIDATOR - Static variable in interface org.snf4j.websocket.IWebSocketSessionConfig
The default key identifying the UTF8 validator FrameUtf8Validator in the default codec pipeline created by the SNF4J framework.
WebSocketSession - Class in org.snf4j.websocket
The Web Socket session implementing the WebSocket Protocol described in RFC 6455.
WebSocketSession(String, IWebSocketHandler, boolean) - Constructor for class org.snf4j.websocket.WebSocketSession
Constructs a named Web Socket session associated with a Web Socket handler.
WebSocketSession(IWebSocketHandler, boolean) - Constructor for class org.snf4j.websocket.WebSocketSession
Constructs a Web Socket session associated with a Web Socket handler.
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links

Copyright © 2017–2022 SNF4J.ORG. All rights reserved.