Class ProxyOptions


  • public class ProxyOptions
    extends Object
    Proxy options.
    • Field Detail

      • DEFAULT_SUPPORT_WEBSOCKET

        public static final boolean DEFAULT_SUPPORT_WEBSOCKET
        Enable WebSocket support : true
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProxyOptions

        public ProxyOptions​(JsonObject json)
      • ProxyOptions

        public ProxyOptions()
    • Method Detail

      • getCacheOptions

        public CacheOptions getCacheOptions()
        Returns:
        the cache options
      • setCacheOptions

        public ProxyOptions setCacheOptions​(CacheOptions cacheOptions)
        Set the cache options that configures the proxy. null cache options disables caching, by default cache is disabled.
        Parameters:
        cacheOptions - the cache options
        Returns:
        a reference to this, so the API can be used fluently
      • getSupportWebSocket

        public boolean getSupportWebSocket()
        Returns:
        whether WebSocket are supported
      • setSupportWebSocket

        public ProxyOptions setSupportWebSocket​(boolean supportWebSocket)
        Set whether WebSocket are supported.
        Parameters:
        supportWebSocket - true to enable WebSocket support, false otherwise
        Returns:
        a reference to this, so the API can be used fluently