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 class WebSocketAdapter
extends Object
implements WebSocketListener


Constructor Summary
WebSocketAdapter()
           
 
Method Summary
 void onClose(WebSocket socket)
           
 void onConnect(WebSocket socket)
           
 void onFragment(WebSocket socket, boolean last, byte[] bytes)
           
 void onMessage(WebSocket socket, byte[] bytes)
           
 void onMessage(WebSocket socket, String text)
           
 void onPing(WebSocket socket, byte[] bytes)
           
 void onPong(WebSocket socket, byte[] bytes)
           
 
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)
Specified by:
onClose in interface WebSocketListener

onConnect

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

onMessage

public void onMessage(WebSocket socket,
                      String text)
Specified by:
onMessage in interface WebSocketListener

onMessage

public void onMessage(WebSocket socket,
                      byte[] bytes)
Specified by:
onMessage in interface WebSocketListener

onPing

public void onPing(WebSocket socket,
                   byte[] bytes)
Specified by:
onPing in interface WebSocketListener

onPong

public void onPong(WebSocket socket,
                   byte[] bytes)
Specified by:
onPong in interface WebSocketListener

onFragment

public void onFragment(WebSocket socket,
                       boolean last,
                       byte[] bytes)
Specified by:
onFragment in interface WebSocketListener


Copyright © 2012 Oracle Corporation. All Rights Reserved.