org.atmosphere.container
Class GlassFishWebSocketSupport.GrizzlyWebSocketSupport

java.lang.Object
  extended by org.atmosphere.container.GlassFishWebSocketSupport.GrizzlyWebSocketSupport
All Implemented Interfaces:
WebSocketSupport
Enclosing class:
GlassFishWebSocketSupport

public class GlassFishWebSocketSupport.GrizzlyWebSocketSupport
extends Object
implements WebSocketSupport


Field Summary
 
Fields inherited from interface org.atmosphere.websocket.WebSocketSupport
WEBSOCKET_RESUME, WEBSOCKET_SUSPEND
 
Constructor Summary
GlassFishWebSocketSupport.GrizzlyWebSocketSupport(com.sun.grizzly.websockets.WebSocket webSocket)
           
 
Method Summary
 void close()
           
 void redirect(String location)
           
 void write(byte frame, byte[] data)
           
 void write(byte frame, byte[] data, int offset, int length)
           
 void write(byte frame, String data)
           
 void writeError(int errorCode, String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlassFishWebSocketSupport.GrizzlyWebSocketSupport

public GlassFishWebSocketSupport.GrizzlyWebSocketSupport(com.sun.grizzly.websockets.WebSocket webSocket)
Method Detail

writeError

public void writeError(int errorCode,
                       String message)
                throws IOException
Specified by:
writeError in interface WebSocketSupport
Throws:
IOException

redirect

public void redirect(String location)
              throws IOException
Specified by:
redirect in interface WebSocketSupport
Throws:
IOException

write

public void write(byte frame,
                  String data)
           throws IOException
Specified by:
write in interface WebSocketSupport
Throws:
IOException

write

public void write(byte frame,
                  byte[] data)
           throws IOException
Specified by:
write in interface WebSocketSupport
Throws:
IOException

write

public void write(byte frame,
                  byte[] data,
                  int offset,
                  int length)
           throws IOException
Specified by:
write in interface WebSocketSupport
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface WebSocketSupport
Throws:
IOException


Copyright © 2011. All Rights Reserved.