org.atmosphere.websocket.container
Class Jetty8WebSocket

java.lang.Object
  extended by org.atmosphere.websocket.container.Jetty8WebSocket
All Implemented Interfaces:
WebSocket

public class Jetty8WebSocket
extends Object
implements WebSocket

Jetty 8 WebSocket support.

Author:
Jeanfrancois Arcand

Field Summary
 
Fields inherited from interface org.atmosphere.websocket.WebSocket
WEBSOCKET_INITIATED, WEBSOCKET_RESUME, WEBSOCKET_SUSPEND
 
Constructor Summary
Jetty8WebSocket(WebSocket.Connection connection)
           
 
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

Jetty8WebSocket

public Jetty8WebSocket(WebSocket.Connection connection)
Method Detail

writeError

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

redirect

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

write

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

write

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

write

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

close

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


Copyright © 2011. All Rights Reserved.