javax.servlet.http.HttpServletResponse
, javax.servlet.ServletResponse
@Deprecated
public class WSHandshakeResponse
extends java.lang.Object
WSHandshakeResponse
object and passes it as an
argument to the accept
method of the WebSocket listener.Modifier and Type | Method | Description |
---|---|---|
void |
enableExtension(java.lang.String extension) |
Deprecated.
Sets WebSocket extensions.
|
void |
enableSubProtocol(java.lang.String protocol) |
Deprecated.
Sets WebSocket subprotocols.
|
java.lang.String[] |
getEnabledExtensions() |
Deprecated.
Returns enabled extensions.
|
java.lang.String[] |
getEnabledSubProtocols() |
Deprecated.
Returns enabled subprotocols.
|
public void enableSubProtocol(java.lang.String protocol)
protocol
- WebSocket subprotocolspublic void enableExtension(java.lang.String extension)
extension
- WebSocket extensionspublic java.lang.String[] getEnabledSubProtocols()
public java.lang.String[] getEnabledExtensions()