Top Constructors Methods
jakarta.websocket

public abstract Class Endpoint

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.tomcat.websocket.pojo.PojoEndpointBase

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
onClose(Session
The session
session
,
CloseReason
Why the session was closed
closeReason
)

Event that is triggered when a session has closed.

public void
onError(Session
The session.
session
,
Throwable
The exception.
throwable
)

Event that is triggered when a protocol error occurs.

public abstract void
onOpen(Session
The new session.
session
,
EndpointConfig
The configuration with which the Endpoint was configured.
config
)

Event that is triggered when a new session starts.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Endpointback to summary
public Endpoint()

Method Detail

onCloseback to summary
public void onClose(Session session, CloseReason closeReason)

Event that is triggered when a session has closed.

Parameters
session:Session

The session

closeReason:CloseReason

Why the session was closed

onErrorback to summary
public void onError(Session session, Throwable throwable)

Event that is triggered when a protocol error occurs.

Parameters
session:Session

The session.

throwable:Throwable

The exception.

onOpenback to summary
public abstract void onOpen(Session session, EndpointConfig config)

Event that is triggered when a new session starts.

Parameters
session:Session

The new session.

config:EndpointConfig

The configuration with which the Endpoint was configured.