|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.websockets.WebSocketConnectorHandler
public class WebSocketConnectorHandler
Client-side WebSocket connector handler, which is used to initiate
client WebSocket connection.
| Constructor Summary | |
|---|---|
WebSocketConnectorHandler(TCPNIOTransport transport)
Construct a WebSocketConnectorHandler basing on the specific TCP Transport object. |
|
WebSocketConnectorHandler(TCPNIOTransport transport,
Processor processor)
Construct a WebSocketConnectorHandler basing on the specific TCP Transport
object. |
|
| Method Summary | |
|---|---|
Future<WebSocket> |
connect(ClientWebSocketMeta meta,
WebSocketClientHandler handler)
Creates, initializes and connects WebSocket to the specific application. |
Future<WebSocket> |
connect(URI uri,
WebSocketClientHandler handler)
Creates, initializes and connects WebSocket to the specific application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebSocketConnectorHandler(TCPNIOTransport transport)
Transport object.
The underlying Grizzly Connection will use a default websockets FilterChain.
transport - TCPNIOTransport
public WebSocketConnectorHandler(TCPNIOTransport transport,
Processor processor)
Transport
object. The underlying Grizzly Connection will use the provided Processor.
transport - TCPNIOTransportprocessor - custom NIO events Processor| Method Detail |
|---|
public Future<WebSocket> connect(URI uri,
WebSocketClientHandler handler)
throws IOException,
HandshakeException
WebSocket to the specific application.
uri - WebSocket application URL.handler - WebSocketClientHandler, which will handle WebSocket's events.
Future of the connect operation, which could be used to get
resulting WebSocket.
IOException
HandshakeException
public Future<WebSocket> connect(ClientWebSocketMeta meta,
WebSocketClientHandler handler)
throws IOException,
HandshakeException
WebSocket to the specific application.
meta - ClientWebSocketMeta.handler - WebSocketClientHandler, which will handle WebSocket's events.
Future of the connect operation, which could be used to get
resulting WebSocket.
IOException
HandshakeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||