Package io.vertx.httpproxy
Class ProxyOptions
- java.lang.Object
-
- io.vertx.httpproxy.ProxyOptions
-
public class ProxyOptions extends Object
Proxy options.
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_SUPPORT_WEBSOCKETEnable WebSocket support :true
-
Constructor Summary
Constructors Constructor Description ProxyOptions()ProxyOptions(JsonObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheOptionsgetCacheOptions()booleangetSupportWebSocket()ProxyOptionssetCacheOptions(CacheOptions cacheOptions)Set the cache options that configures the proxy.ProxyOptionssetSupportWebSocket(boolean supportWebSocket)Set whether WebSocket are supported.JsonObjecttoJson()StringtoString()
-
-
-
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.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
public ProxyOptions setSupportWebSocket(boolean supportWebSocket)
Set whether WebSocket are supported.- Parameters:
supportWebSocket-trueto enable WebSocket support,falseotherwise- Returns:
- a reference to this, so the API can be used fluently
-
toJson
public JsonObject toJson()
-
-