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
      • getForwardedHeadersOptions

        public ForwardedHeadersOptions getForwardedHeadersOptions()
        Returns:
        the forwarded headers options
      • setForwardedHeadersOptions

        public ProxyOptions setForwardedHeadersOptions​(ForwardedHeadersOptions forwardedHeadersOptions)
        Set the forwarded headers options that configures how the proxy handles X-Forwarded-* or RFC 7239 Forwarded headers.

        null forwarded headers options disables forwarded headers support, by default forwarded headers support is disabled.

        Parameters:
        forwardedHeadersOptions - the forwarded headers options
        Returns:
        a reference to this, so the API can be used fluently