com.sun.grizzly.samples.websockets
Class ChatApplication
java.lang.Object
com.sun.grizzly.websockets.WebSocketAdapter
com.sun.grizzly.websockets.WebSocketApplication
com.sun.grizzly.samples.websockets.ChatApplication
- All Implemented Interfaces:
- WebSocketListener
public class ChatApplication
- extends WebSocketApplication
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChatApplication
public ChatApplication()
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
createSocket
public WebSocket createSocket(WebSocketListener[] listeners)
- Overrides:
createSocket
in class WebSocketApplication
onMessage
public void onMessage(WebSocket socket,
String frame)
- Specified by:
onMessage
in interface WebSocketListener
- Overrides:
onMessage
in class WebSocketAdapter
Copyright © 2012 Oracle Corporation. All Rights Reserved.