com.sun.grizzly.samples.stickies
Class StickiesApplication

java.lang.Object
  extended by com.sun.grizzly.websockets.WebSocketAdapter
      extended by com.sun.grizzly.websockets.WebSocketApplication
          extended by com.sun.grizzly.samples.stickies.StickiesApplication
All Implemented Interfaces:
WebSocketListener

public class StickiesApplication
extends WebSocketApplication


Field Summary
static AtomicInteger ids
           
 
Constructor Summary
StickiesApplication()
           
 
Method Summary
 boolean isApplicationRequest(Request request)
          Checks application specific criteria to determine if this application can process the Request as a WebSocket connection.
 void onConnect(WebSocket socket)
           
 void onMessage(WebSocket socket, String data)
           
 
Methods inherited from class com.sun.grizzly.websockets.WebSocketApplication
add, createWebSocket, getCoreWriterThreads, getMaxWriterThreads, getQueueSizeReceiverDelayingThreshold, getQueueSizeThreadSpawnThreshold, getSupportedExtensions, getSupportedProtocols, getWebSockets, helpWriteQueue, isWriterThreadsEnabled, onClose, remove
 
Methods inherited from class com.sun.grizzly.websockets.WebSocketAdapter
onFragment, onFragment, onMessage, onPing, onPong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ids

public static final AtomicInteger ids
Constructor Detail

StickiesApplication

public StickiesApplication()
Method Detail

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.

Overrides:
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 © 2013 Oracle Corporation. All Rights Reserved.