- java.lang.Object
-
- swim.ws.WsEngineSettings
-
- All Implemented Interfaces:
Debug
- Direct Known Subclasses:
WsSettings
public class WsEngineSettings extends Object implements Debug
-
-
Field Summary
Fields Modifier and Type Field Description protected int
clientCompressionLevel
protected int
clientMaxWindowBits
protected boolean
clientNoContextTakeover
protected int
maxFrameSize
protected int
maxMessageSize
protected int
serverCompressionLevel
protected int
serverMaxWindowBits
protected boolean
serverNoContextTakeover
-
Constructor Summary
Constructors Constructor Description WsEngineSettings(int maxFrameSize, int maxMessageSize, int serverCompressionLevel, int clientCompressionLevel, boolean serverNoContextTakeover, boolean clientNoContextTakeover, int serverMaxWindowBits, int clientMaxWindowBits)
-
Method Summary
-
-
-
Field Detail
-
maxFrameSize
protected final int maxFrameSize
-
maxMessageSize
protected final int maxMessageSize
-
serverCompressionLevel
protected final int serverCompressionLevel
-
clientCompressionLevel
protected final int clientCompressionLevel
-
serverNoContextTakeover
protected final boolean serverNoContextTakeover
-
clientNoContextTakeover
protected final boolean clientNoContextTakeover
-
serverMaxWindowBits
protected final int serverMaxWindowBits
-
clientMaxWindowBits
protected final int clientMaxWindowBits
-
-
Method Detail
-
maxFrameSize
public final int maxFrameSize()
-
maxFrameSize
public WsEngineSettings maxFrameSize(int maxFrameSize)
-
maxMessageSize
public final int maxMessageSize()
-
maxMessageSize
public WsEngineSettings maxMessageSize(int maxMessageSize)
-
serverCompressionLevel
public final int serverCompressionLevel()
-
serverCompressionLevel
public WsEngineSettings serverCompressionLevel(int serverCompressionLevel)
-
clientCompressionLevel
public final int clientCompressionLevel()
-
clientCompressionLevel
public WsEngineSettings clientCompressionLevel(int clientCompressionLevel)
-
compressionLevel
public WsEngineSettings compressionLevel(int serverCompressionLevel, int clientCompressionLevel)
-
serverNoContextTakeover
public final boolean serverNoContextTakeover()
-
serverNoContextTakeover
public WsEngineSettings serverNoContextTakeover(boolean serverNoContextTakeover)
-
clientNoContextTakeover
public final boolean clientNoContextTakeover()
-
clientNoContextTakeover
public WsEngineSettings clientNoContextTakeover(boolean clientNoContextTakeover)
-
serverMaxWindowBits
public final int serverMaxWindowBits()
-
serverMaxWindowBits
public WsEngineSettings serverMaxWindowBits(int serverMaxWindowBits)
-
clientMaxWindowBits
public final int clientMaxWindowBits()
-
clientMaxWindowBits
public WsEngineSettings clientMaxWindowBits(int clientMaxWindowBits)
-
extensions
public FingerTrieSeq<WebSocketExtension> extensions()
-
acceptExtensions
public FingerTrieSeq<WebSocketExtension> acceptExtensions(FingerTrieSeq<WebSocketExtension> requestExtensions)
-
handshakeRequest
public WsRequest handshakeRequest(Uri uri, FingerTrieSeq<String> protocols, FingerTrieSeq<HttpHeader> headers)
-
handshakeRequest
public WsRequest handshakeRequest(Uri uri, FingerTrieSeq<String> protocols, HttpHeader... headers)
-
handshakeRequest
public WsRequest handshakeRequest(Uri uri, FingerTrieSeq<String> protocols)
-
handshakeRequest
public WsRequest handshakeRequest(Uri uri, HttpHeader... headers)
-
toValue
public Value toValue()
-
copy
protected WsEngineSettings copy(int maxFrameSize, int maxMessageSize, int serverCompressionLevel, int clientCompressionLevel, boolean serverNoContextTakeover, boolean clientNoContextTakeover, int serverMaxWindowBits, int clientMaxWindowBits)
-
canEqual
public boolean canEqual(Object other)
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
standard
public static WsEngineSettings standard()
-
noCompression
public static WsEngineSettings noCompression()
-
defaultCompression
public static WsEngineSettings defaultCompression()
-
fastestCompression
public static WsEngineSettings fastestCompression()
-
bestCompression
public static WsEngineSettings bestCompression()
-
engineForm
@Kind public static Form<WsEngineSettings> engineForm()
-
-