Package javax.websocket
Class Endpoint
- java.lang.Object
- 
- javax.websocket.Endpoint
 
- 
 public abstract class Endpoint extends java.lang.Object
- 
- 
Constructor SummaryConstructors Constructor Description Endpoint()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidonClose(Session session, CloseReason closeReason)Event that is triggered when a session has closed.voidonError(Session session, java.lang.Throwable throwable)Event that is triggered when a protocol error occurs.abstract voidonOpen(Session session, EndpointConfig config)Event that is triggered when a new session starts.
 
- 
- 
- 
Method Detail- 
onOpenpublic abstract void onOpen(Session session, EndpointConfig config) Event that is triggered when a new session starts.- Parameters:
- session- The new session.
- config- The configuration with which the Endpoint was configured.
 
 - 
onClosepublic void onClose(Session session, CloseReason closeReason) Event that is triggered when a session has closed.- Parameters:
- session- The session
- closeReason- Why the session was closed
 
 - 
onErrorpublic void onError(Session session, java.lang.Throwable throwable) Event that is triggered when a protocol error occurs.- Parameters:
- session- The session.
- throwable- The exception.
 
 
- 
 
-