public class ProxyOptions extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_SUPPORT_WEBSOCKET
Enable WebSocket support :
true |
Constructor and Description |
---|
ProxyOptions() |
ProxyOptions(JsonObject json) |
Modifier and Type | Method and Description |
---|---|
CacheOptions |
getCacheOptions() |
boolean |
getSupportWebSocket() |
ProxyOptions |
setCacheOptions(CacheOptions cacheOptions)
Set the cache options that configures the proxy.
|
ProxyOptions |
setSupportWebSocket(boolean supportWebSocket)
Set whether WebSocket are supported.
|
JsonObject |
toJson() |
String |
toString() |
public static final boolean DEFAULT_SUPPORT_WEBSOCKET
true
public ProxyOptions(JsonObject json)
public ProxyOptions()
public CacheOptions getCacheOptions()
public ProxyOptions setCacheOptions(CacheOptions cacheOptions)
null
cache options disables caching, by default cache is disabled.cacheOptions
- the cache optionspublic boolean getSupportWebSocket()
public ProxyOptions setSupportWebSocket(boolean supportWebSocket)
supportWebSocket
- true
to enable WebSocket support, false
otherwisepublic JsonObject toJson()
Copyright © 2022 Eclipse. All rights reserved.