io.vertx.ext.web.handler.graphql

## Class ApolloWSOptions

- java.lang.Object
- - io.vertx.ext.web.handler.graphql.ApolloWSOptions

- Deprecated.
  the subscriptions-transport-ws protocol is no longer maintained

      @Deprecated
      public class ApolloWSOptions
      extends Object

  Options for configuring the `ApolloWSHandler`.
  Author:
    Rogelio Orts

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static long` | `DEFAULT_KEEP_ALIVE` Deprecated. Default interval in milliseconds to send `KEEPALIVE` messages to all clients = 30000.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ApolloWSOptions()` Deprecated. Default constructor.
    `ApolloWSOptions(ApolloWSOptions other)` Deprecated. Copy constructor.
    `ApolloWSOptions(JsonObject json)` Deprecated. Constructor to create options from JSON.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getKeepAlive()` Deprecated.
    `String` | `getOrigin()` Deprecated.
    `ApolloWSOptions` | `setKeepAlive(long keepAlive)` Deprecated. Set the interval in milliseconds to send `KEEPALIVE` messages to all clients.
    `ApolloWSOptions` | `setOrigin(String origin)` Deprecated. Set the `Origin` for this handler, by default it will be `null`.
    `JsonObject` | `toJson()` Deprecated.

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

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

- - ### Field Detail

    - #### DEFAULT_KEEP_ALIVE

          public static final long DEFAULT_KEEP_ALIVE

      Deprecated.
      Default interval in milliseconds to send `KEEPALIVE` messages to all clients = 30000.
      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### ApolloWSOptions

          public ApolloWSOptions()

      Deprecated.
      Default constructor.

    - #### ApolloWSOptions

          public ApolloWSOptions(ApolloWSOptions other)

      Deprecated.
      Copy constructor.
      Parameters:
        `other` - the options to copy

    - #### ApolloWSOptions

          public ApolloWSOptions(JsonObject json)

      Deprecated.
      Constructor to create options from JSON.
      Parameters:
        `json` - the JSON

  - ### Method Detail

    - #### toJson

          public JsonObject toJson()

      Deprecated.
      Returns:
        a JSON representation of these options

    - #### getKeepAlive

          public long getKeepAlive()

      Deprecated.
      Returns:
        interval in milliseconds to send `KEEPALIVE` messages to all clients

    - #### setKeepAlive

          public ApolloWSOptions setKeepAlive(long keepAlive)

      Deprecated.
      Set the interval in milliseconds to send `KEEPALIVE` messages to all clients. Defaults to `30000`.
      Parameters:
        `keepAlive` - interval in milliseconds
      Returns:
        a reference to this, so the API can be used fluently

    - #### getOrigin

          public String getOrigin()

      Deprecated.
      Returns:
        the `Origin` for this handler. The Origin will be used to prevent Cross-Site WebSocket Hijacking attacks.

    - #### setOrigin

          public ApolloWSOptions setOrigin(String origin)

      Deprecated.
      Set the `Origin` for this handler, by default it will be `null`.
      Parameters:
        `origin` - web origin for this handler or `null`
      Returns:
        a reference to this, so the API can be used fluently

Copyright © 2023 Eclipse. All rights reserved.