com.sun.grizzly.websockets
Class WebSocketAdapter

java.lang.Object
  extended by com.sun.grizzly.websockets.WebSocketAdapter
All Implemented Interfaces:
WebSocketListener
Direct Known Subclasses:
WebSocketApplication

public abstract class WebSocketAdapter
extends Object
implements WebSocketListener


Constructor Summary
WebSocketAdapter()
           
 
Method Summary
 void onClose(WebSocket socket)
           
 void onConnect(WebSocket socket)
           
 void onMessage(WebSocket socket, DataFrame frame)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSocketAdapter

public WebSocketAdapter()
Method Detail

onClose

public void onClose(WebSocket socket)
             throws IOException
Specified by:
onClose in interface WebSocketListener
Throws:
IOException

onConnect

public void onConnect(WebSocket socket)
               throws IOException
Specified by:
onConnect in interface WebSocketListener
Throws:
IOException

onMessage

public void onMessage(WebSocket socket,
                      DataFrame frame)
               throws IOException
Specified by:
onMessage in interface WebSocketListener
Throws:
IOException


Copyright © 2011 Oracle Corpration. All Rights Reserved.