PojoEndpointServer (Apache Tomcat 7.0.104 API Documentation)

org.apache.tomcat.websocket.pojo

## Class PojoEndpointServer

- java.lang.Object
- - javax.websocket.Endpoint
  - - org.apache.tomcat.websocket.pojo.PojoEndpointBase
    - - org.apache.tomcat.websocket.pojo.PojoEndpointServer

-     public class PojoEndpointServer
      extends PojoEndpointBase

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

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `POJO_METHOD_MAPPING_KEY` Deprecated. Will be removed in 8.5.x onwards.
    `static String` | `POJO_PATH_PARAM_KEY` Deprecated. Will be removed in 8.5.x onwards.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PojoEndpointServer()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onOpen(Session session, EndpointConfig endpointConfig)` Event that is triggered when a new session starts.

    - ### Methods inherited from class org.apache.tomcat.websocket.pojo.PojoEndpointBase

      `doOnOpen, getMethodMapping, getPathParameters, getPojo, onClose, onError, setMethodMapping, setPathParameters, setPojo`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### POJO_PATH_PARAM_KEY

          @Deprecated
          public static final String POJO_PATH_PARAM_KEY

      Deprecated. Will be removed in 8.5.x onwards.
      See Also:
        Constant Field Values

    - #### POJO_METHOD_MAPPING_KEY

          @Deprecated
          public static final String POJO_METHOD_MAPPING_KEY

      Deprecated. Will be removed in 8.5.x onwards.
      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### PojoEndpointServer

          public PojoEndpointServer()

  - ### Method Detail

    - #### onOpen

          public void onOpen(Session session,
                    EndpointConfig endpointConfig)

      Description copied from class: `Endpoint`
      Event that is triggered when a new session starts.
      Specified by:
        `onOpen` in class `Endpoint`
      Parameters:
        `session` - The new session.
        `endpointConfig` - The configuration with which the Endpoint was configured.

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.