ServerEndpoint (WebSocket 1.1 API Documentation - Apache Tomcat 8.5.85)

Package javax.websocket.server

## Annotation Type ServerEndpoint

-     @Retention(RUNTIME)
      @Target(TYPE)
      public @interface ServerEndpoint

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element | Description
    --- | --- | ---
    `java.lang.String` | `value` | URI or URI-template that the annotated class should be mapped to.

  - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element | Description
    --- | --- | ---
    `java.lang.Class<? extends ServerEndpointConfig.Configurator>` | `configurator` |
    `java.lang.Class<? extends Decoder>[]` | `decoders` |
    `java.lang.Class<? extends Encoder>[]` | `encoders` |
    `java.lang.String[]` | `subprotocols` |

- - ### Element Detail

    - #### value

          java.lang.String value

      URI or URI-template that the annotated class should be mapped to.
      Returns:
        The URI or URI-template that the annotated class should be mapped to.

  - - #### subprotocols

          java.lang.String[] subprotocols

      Default:
        {}

  - - #### decoders

          java.lang.Class<? extends Decoder>[] decoders

      Default:
        {}

  - - #### encoders

          java.lang.Class<? extends Encoder>[] encoders

      Default:
        {}

  - - #### configurator

          java.lang.Class<? extends ServerEndpointConfig.Configurator> configurator

      Default:
        javax.websocket.server.ServerEndpointConfig.Configurator.class