Class PojoEndpointClient


public class PojoEndpointClient extends PojoEndpointBase
Wrapper class for instances of POJOs annotated with ClientEndpoint so they appear as standard Endpoint instances.
  • Constructor Details

    • PojoEndpointClient

      public PojoEndpointClient(Object pojo, List<Class<? extends Decoder>> decoders, InstanceManager instanceManager) throws DeploymentException
      Constructs a new PojoEndpointClient.
      Parameters:
      pojo - the POJO instance annotated with @ClientEndpoint
      decoders - the list of decoder classes
      instanceManager - the instance manager for lifecycle management
      Throws:
      DeploymentException - if the endpoint cannot be configured
  • Method Details

    • onOpen

      public void onOpen(Session session, EndpointConfig config)
      Description copied from class: jakarta.websocket.Endpoint
      Event that is triggered when a new session starts.
      Specified by:
      onOpen in class Endpoint
      Parameters:
      session - The new session.
      config - The configuration with which the Endpoint was configured.