Annotation Type ServerEndpoint


@Retention(RUNTIME) @Target(TYPE) public @interface ServerEndpoint
  • Element Details

    • value

      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

      String[] subprotocols
      Default:
      {}
    • decoders

      Class<? extends Decoder>[] decoders
      Default:
      {}
    • encoders

      Class<? extends Encoder>[] encoders
      Default:
      {}
    • configurator

      Class<? extends ServerEndpointConfig.Configurator> configurator
      Default:
      jakarta.websocket.server.ServerEndpointConfig.Configurator.class