Class PojoEndpointClient

    • Constructor Detail

      • PojoEndpointClient

        public PojoEndpointClient​(java.lang.Object pojo,
                                  java.util.List<java.lang.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 Detail

      • 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.