Class WebsocketConstants

java.lang.Object
org.apache.camel.component.websocket.WebsocketConstants

public final class WebsocketConstants extends Object
  • Field Details

    • DEFAULT_PORT

      public static final int DEFAULT_PORT
      See Also:
    • DEFAULT_HOST

      public static final String DEFAULT_HOST
      See Also:
    • CONNECTION_KEY

      @Metadata(description="*Producer:* Sends the message to all clients which are currently connected. You can\nuse the `sendToAll` option on the endpoint instead of using this header.\n*Consumer:* Connection key identifying an individual client connection. You can save this and specify it again when routing to a producer endpoing in order to direct messages to a specific connected client.", javaType="String") public static final String CONNECTION_KEY
      See Also:
    • SEND_TO_ALL

      @Metadata(label="producer", description="Sends the message to all clients which are currently connected. You can use the sendToAll option on the endpoint instead of using this header.", javaType="Boolean") public static final String SEND_TO_ALL
      See Also:
    • REMOTE_ADDRESS

      @Metadata(label="consumer", description="Remote address of the websocket session.", javaType="java.net.InetSocketAddress") public static final String REMOTE_ADDRESS
      See Also:
    • SUBPROTOCOL

      @Metadata(label="consumer", description="If a specific subprotocol was negotiated, it will be specfied in this header. Note that if you specify the \"any\" subprotocol to be supported, and a client requests a specific subprotocol, the connection will be accepted without a specific subprotocol being used. You need to specifically support a given protocol by name if you want it returned to the client and to show up in the message header.", javaType="String") public static final String SUBPROTOCOL
      See Also:
    • RELATIVE_PATH

      @Metadata(label="consumer", description="If you specify a wildcard URI path for an endpoint, and a websocket client connects to that websocket endpoing, the relative path that the client specified will be provided in this header.\n\nFor example, if you specified `websocket://0.0.0.0:80/api/*` as your endpoint URI, and a client connects to the server at `ws://host.com/api/specialized/apipath` then `specialized/apipath` is provided in the relative path header of all messages from that client.", javaType="String") public static final String RELATIVE_PATH
      See Also:
    • WS_PROTOCOL

      public static final String WS_PROTOCOL
      See Also:
    • WSS_PROTOCOL

      public static final String WSS_PROTOCOL
      See Also: