|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WebSocket
General WebSocket unit interface.
WebSocketBase| Method Summary | |
|---|---|
void |
close()
Close the WebSocket. |
Connection |
getConnection()
Gets the WebSocket's underlying Connection. |
WebSocketHandler |
getHandler()
Returns the WebSocket's events handler. |
WebSocketMeta |
getMeta()
Returns the WebSocket's meta data. |
URI |
getURI()
Gets the WebSocket URI. |
boolean |
isConnected()
Returns true if the WebSocket is connected and ready to operate, or false otherwise. |
GrizzlyFuture<Frame> |
send(Frame frame)
Send a message, represented as WebSocket Frame. |
GrizzlyFuture<Frame> |
send(Frame frame,
CompletionHandler<Frame> completionHandler)
Send a message, represented as WebSocket Frame. |
| Method Detail |
|---|
GrizzlyFuture<Frame> send(Frame frame)
throws IOException
Frame.
frame - Frame.
GrizzlyFuture, which could be used to control the sending completion state.
IOException
GrizzlyFuture<Frame> send(Frame frame,
CompletionHandler<Frame> completionHandler)
throws IOException
Frame.
frame - Frame.completionHandler - CompletionHandler, which could be used
to control the message sending state.
GrizzlyFuture, which could be used to control the sending
completion state.
IOException
void close()
throws IOException
WebSocketHandler.onClose(org.glassfish.grizzly.websockets.WebSocket) method
3) close the underlying Connection
IOExceptionboolean isConnected()
URI getURI()
Connection getConnection()
Connection.
Connection.WebSocketMeta getMeta()
WebSocketMeta.WebSocketHandler getHandler()
WebSocketHandler.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||