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

public Class PojoEndpointClient

extends PojoEndpointBase
Class Inheritance
Imports
java.util.Collections, .List, jakarta.websocket.Decoder, .DeploymentException, .EndpointConfig, .Session, org.apache.tomcat.InstanceManager

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

Constructor Summary

AccessConstructor and Description
public
PojoEndpointClient(Object pojo, List<Class<? extends Decoder>> decoders, InstanceManager instanceManager)

Method Summary

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

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

PojoEndpointClientback to summary
public PojoEndpointClient(Object pojo, List<Class<? extends Decoder>> decoders, InstanceManager instanceManager) throws DeploymentException

Method Detail

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

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.

config:EndpointConfig

The configuration with which the Endpoint was configured.

Annotations
@Override