Top Description Constructors Methods
org.apache.tomcat.websocket.pojo

public Class PojoEndpointServer

extends PojoEndpointBase
Class Inheritance
Imports
java.util.Map, jakarta.websocket.EndpointConfig, .Session, jakarta.websocket.server.ServerEndpointConfig

Wrapper class for instances of POJOs annotated with jakarta.websocket.server.ServerEndpoint so they appear as standard jakarta.websocket.Endpoint instances.

Constructor Summary

AccessConstructor and Description
public
PojoEndpointServer(Map<String, String> pathParameters, Object pojo)

Method Summary

Modifier and TypeMethod and Description
public void
onOpen(Session
The new session.
session
,
EndpointConfig
The configuration with which the Endpoint was configured.
endpointConfig
)

Implements abstract jakarta.websocket.Endpoint.onOpen.

Event that is triggered when a new session starts.

Inherited from org.apache.tomcat.websocket.pojo.PojoEndpointBase:
doOnOpengetMethodMappinggetPojoonCloseonErrorsetMethodMappingsetPojo

Constructor Detail

PojoEndpointServerback to summary
public PojoEndpointServer(Map<String, String> pathParameters, Object pojo)

Method Detail

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

Implements abstract jakarta.websocket.Endpoint.onOpen.

Doc from jakarta.websocket.Endpoint.onOpen.

Event that is triggered when a new session starts.

Parameters
session:Session

The new session.

endpointConfig:EndpointConfig

The configuration with which the Endpoint was configured.

Annotations
@Override