com.sun.grizzly.samples.stickies
Class StickiesApplication
java.lang.Object
com.sun.grizzly.websockets.WebSocketAdapter
com.sun.grizzly.websockets.WebSocketApplication
com.sun.grizzly.samples.stickies.StickiesApplication
- All Implemented Interfaces:
- WebSocketListener
public class StickiesApplication
- extends WebSocketApplication
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ids
public static final AtomicInteger ids
StickiesApplication
public StickiesApplication()
isApplicationRequest
public boolean isApplicationRequest(Request request)
- Description copied from class:
WebSocketApplication
- Checks application specific criteria to determine if this application can process the Request as a WebSocket
connection.
- Specified by:
isApplicationRequest
in class WebSocketApplication
- Returns:
- true if this application can service this Request
onMessage
public void onMessage(WebSocket socket,
String data)
- Specified by:
onMessage
in interface WebSocketListener
- Overrides:
onMessage
in class WebSocketAdapter
onConnect
public void onConnect(WebSocket socket)
- Specified by:
onConnect
in interface WebSocketListener
- Overrides:
onConnect
in class WebSocketApplication
Copyright © 2012 Oracle Corporation. All Rights Reserved.