程序包 | 说明 |
---|---|
org.jboss.netty.handler.codec.http.websocketx |
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
|
限定符和类型 | 方法和说明 |
---|---|
WebSocketVersion |
WebSocketServerHandshaker.getVersion()
Returns the version of the specification being supported
|
WebSocketVersion |
WebSocketClientHandshaker.getVersion()
Version of the web socket specification that is being used
|
static WebSocketVersion |
WebSocketVersion.valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static WebSocketVersion[] |
WebSocketVersion.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
WebSocketClientHandshaker |
WebSocketClientHandshakerFactory.newHandshaker(java.net.URI webSocketURL,
WebSocketVersion version,
java.lang.String subprotocol,
boolean allowExtensions,
java.util.Map<java.lang.String,java.lang.String> customHeaders)
Instances a new handshaker
|
WebSocketClientHandshaker |
WebSocketClientHandshakerFactory.newHandshaker(java.net.URI webSocketURL,
WebSocketVersion version,
java.lang.String subprotocol,
boolean allowExtensions,
java.util.Map<java.lang.String,java.lang.String> customHeaders,
long maxFramePayloadLength)
Instances a new handshaker
|
构造器和说明 |
---|
WebSocketClientHandshaker(java.net.URI webSocketUrl,
WebSocketVersion version,
java.lang.String subprotocol,
java.util.Map<java.lang.String,java.lang.String> customHeaders)
Base constructor with default values
|
WebSocketClientHandshaker(java.net.URI webSocketUrl,
WebSocketVersion version,
java.lang.String subprotocol,
java.util.Map<java.lang.String,java.lang.String> customHeaders,
long maxFramePayloadLength)
Base constructor
|
WebSocketClientHandshaker00(java.net.URI webSocketURL,
WebSocketVersion version,
java.lang.String subprotocol,
java.util.Map<java.lang.String,java.lang.String> customHeaders)
Constructor with default values
|
WebSocketClientHandshaker00(java.net.URI webSocketURL,
WebSocketVersion version,
java.lang.String subprotocol,
java.util.Map<java.lang.String,java.lang.String> customHeaders,
long maxFramePayloadLength)
Constructor
|
WebSocketClientHandshaker07(java.net.URI webSocketURL,
WebSocketVersion version,
java.lang.String subprotocol,
boolean allowExtensions,
java.util.Map<java.lang.String,java.lang.String> customHeaders,
long maxFramePayloadLength)
Creates a new instance.
|
WebSocketClientHandshaker08(java.net.URI webSocketURL,
WebSocketVersion version,
java.lang.String subprotocol,
boolean allowExtensions,
java.util.Map<java.lang.String,java.lang.String> customHeaders)
Constructor with default values
|
WebSocketClientHandshaker08(java.net.URI webSocketURL,
WebSocketVersion version,
java.lang.String subprotocol,
boolean allowExtensions,
java.util.Map<java.lang.String,java.lang.String> customHeaders,
long maxFramePayloadLength)
Constructor
|
WebSocketClientHandshaker13(java.net.URI webSocketURL,
WebSocketVersion version,
java.lang.String subprotocol,
boolean allowExtensions,
java.util.Map<java.lang.String,java.lang.String> customHeaders)
Constructor with default values
|
WebSocketClientHandshaker13(java.net.URI webSocketURL,
WebSocketVersion version,
java.lang.String subprotocol,
boolean allowExtensions,
java.util.Map<java.lang.String,java.lang.String> customHeaders,
long maxFramePayloadLength)
Constructor
|
WebSocketServerHandshaker(WebSocketVersion version,
java.lang.String webSocketUrl,
java.lang.String subprotocols)
Constructor using default values
|
WebSocketServerHandshaker(WebSocketVersion version,
java.lang.String webSocketUrl,
java.lang.String subprotocols,
long maxFramePayloadLength)
Constructor specifying the destination web socket location
|