Package org.zkoss.zkmax.au.websocket
Class WebSocketEndPoint
- java.lang.Object
-
- javax.websocket.Endpoint
-
- org.zkoss.zkmax.au.websocket.WebSocketEndPoint
-
- All Implemented Interfaces:
java.io.Serializable
public class WebSocketEndPoint extends javax.websocket.Endpoint implements java.io.Serializable
A WebSocket EndPoint for WebSocket based Update Engine and WebSocket implemented ServerPush.- Since:
- 8.5.0
- Author:
- wenninghsu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebSocketEndPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onClose(javax.websocket.Session wsession, javax.websocket.CloseReason closeReason)
void
onError(javax.websocket.Session wsession, java.lang.Throwable throwable)
void
onOpen(javax.websocket.Session wsession, javax.websocket.EndpointConfig config)
protected void
sendText(java.lang.String text)
protected void
setWebSocketServerPush(WebSocketServerPush wssp)
-
-
-
Method Detail
-
onOpen
public void onOpen(javax.websocket.Session wsession, javax.websocket.EndpointConfig config)
- Specified by:
onOpen
in classjavax.websocket.Endpoint
-
onClose
public void onClose(javax.websocket.Session wsession, javax.websocket.CloseReason closeReason)
- Overrides:
onClose
in classjavax.websocket.Endpoint
-
onError
public void onError(javax.websocket.Session wsession, java.lang.Throwable throwable)
- Overrides:
onError
in classjavax.websocket.Endpoint
-
sendText
protected void sendText(java.lang.String text) throws java.io.IOException
- Throws:
java.io.IOException
-
setWebSocketServerPush
protected void setWebSocketServerPush(WebSocketServerPush wssp)
-
-