Uses of Interface
org.simpleframework.http.socket.Session
-
Packages that use Session Package Description org.simpleframework.http.socket org.simpleframework.http.socket.service -
-
Uses of Session in org.simpleframework.http.socket
Methods in org.simpleframework.http.socket with parameters of type Session Modifier and Type Method Description void
FrameListener. onClose(Session session, Reason reason)
This is called when the connection is closed from the other side.void
FrameListener. onError(Session session, java.lang.Exception cause)
This is called when an error occurs on the WebSocket.void
FrameListener. onFrame(Session session, Frame frame)
This is called when a new frame arrives on the WebSocket. -
Uses of Session in org.simpleframework.http.socket.service
Classes in org.simpleframework.http.socket.service that implement Session Modifier and Type Class Description (package private) class
ServiceSession
TheServiceSession
represents a simple WebSocket session that contains the connection handshake details and the actual socket.Fields in org.simpleframework.http.socket.service declared as Session Modifier and Type Field Description private Session
FrameConnection. session
This is the session object that has a synchronized channel.private Session
FrameProcessor. session
This is the session associated with the WebSocket connection.Methods in org.simpleframework.http.socket.service that return Session Modifier and Type Method Description Session
SessionBuilder. create(Request request, Response response)
This is used to create a WebSocket session.Session
FrameConnection. open()
This is used to open the channel and begin consuming frames.Methods in org.simpleframework.http.socket.service with parameters of type Session Modifier and Type Method Description void
Service. connect(Session session)
This method connects a new session with a service implementation.void
StatusResultListener. onClose(Session session, Reason reason)
This is called when the connection is closed from the other side.void
StatusResultListener. onError(Session session, java.lang.Exception cause)
This is called when there is an error with the connection.void
StatusResultListener. onFrame(Session session, Frame frame)
This is called when a new frame arrives on the WebSocket.Constructors in org.simpleframework.http.socket.service with parameters of type Session Constructor Description FrameCollector(FrameEncoder encoder, Session session, Request request, Reactor reactor)
Constructor for theFrameCollector
object.FrameProcessor(FrameEncoder encoder, Session session, Request request)
Constructor for theFrameProcessor
object.
-