org.atmosphere.websocket
Class JettyWebSocketSupport
java.lang.Object
org.atmosphere.websocket.JettyWebSocketSupport
- All Implemented Interfaces:
- WebSocketSupport
public class JettyWebSocketSupport
- extends Object
- implements WebSocketSupport
Jetty 7 & 8 WebSocket support.
- Author:
- Jeanfrancois Arcand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JettyWebSocketSupport
public JettyWebSocketSupport(WebSocket.Outbound outbound)
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.