org.atmosphere.websocket
Class JettyWebSocketSupport

java.lang.Object
  extended by org.atmosphere.websocket.JettyWebSocketSupport
All Implemented Interfaces:
WebSocketSupport

public class JettyWebSocketSupport
extends Object
implements WebSocketSupport

Jetty 7 & 8 WebSocket support.

Author:
Jeanfrancois Arcand

Field Summary
 
Fields inherited from interface org.atmosphere.websocket.WebSocketSupport
WEBSOCKET_RESUME, WEBSOCKET_SUSPEND
 
Constructor Summary
JettyWebSocketSupport(WebSocket.Outbound outbound)
           
 
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

JettyWebSocketSupport

public JettyWebSocketSupport(WebSocket.Outbound outbound)
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.