public class NotebookSocket
extends org.eclipse.jetty.websocket.api.WebSocketAdapter
| Constructor and Description |
|---|
NotebookSocket(javax.servlet.http.HttpServletRequest req,
String protocol,
NotebookSocketListener listener) |
| Modifier and Type | Method and Description |
|---|---|
String |
getProtocol() |
javax.servlet.http.HttpServletRequest |
getRequest() |
void |
onWebSocketClose(int closeCode,
String message) |
void |
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session connection) |
void |
onWebSocketText(String message) |
void |
send(String serializeMessage) |
public NotebookSocket(javax.servlet.http.HttpServletRequest req,
String protocol,
NotebookSocketListener listener)
public void onWebSocketClose(int closeCode,
String message)
onWebSocketClose in interface org.eclipse.jetty.websocket.api.WebSocketListeneronWebSocketClose in class org.eclipse.jetty.websocket.api.WebSocketAdapterpublic void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session connection)
onWebSocketConnect in interface org.eclipse.jetty.websocket.api.WebSocketListeneronWebSocketConnect in class org.eclipse.jetty.websocket.api.WebSocketAdapterpublic void onWebSocketText(String message)
onWebSocketText in interface org.eclipse.jetty.websocket.api.WebSocketListeneronWebSocketText in class org.eclipse.jetty.websocket.api.WebSocketAdapterpublic javax.servlet.http.HttpServletRequest getRequest()
public String getProtocol()
public void send(String serializeMessage) throws IOException
IOExceptionCopyright © 2013–2016 The Apache Software Foundation. All rights reserved.