Class ProxyOptions
java.lang.Object
io.vertx.httpproxy.ProxyOptions
Proxy options.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanEnable WebSocket support :true -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleansetCacheOptions(CacheOptions cacheOptions) Set the cache options that configures the proxy.setForwardedHeadersOptions(ForwardedHeadersOptions forwardedHeadersOptions) Set the forwarded headers options that configures how the proxy handles X-Forwarded-* or RFC 7239 Forwarded headers.setSupportWebSocket(boolean supportWebSocket) Set whether WebSocket are supported.toJson()toString()
-
Field Details
-
DEFAULT_SUPPORT_WEBSOCKET
public static final boolean DEFAULT_SUPPORT_WEBSOCKETEnable WebSocket support :true- See Also:
-
-
Constructor Details
-
ProxyOptions
-
ProxyOptions
public ProxyOptions()
-
-
Method Details
-
getCacheOptions
- Returns:
- the cache options
-
setCacheOptions
Set the cache options that configures the proxy.nullcache 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
Set whether WebSocket are supported.- Parameters:
supportWebSocket-trueto enable WebSocket support,falseotherwise- Returns:
- a reference to this, so the API can be used fluently
-
getForwardedHeadersOptions
- Returns:
- the forwarded headers options
-
setForwardedHeadersOptions
Set the forwarded headers options that configures how the proxy handles X-Forwarded-* or RFC 7239 Forwarded headers.nullforwarded 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
-
toString
-
toJson
-