org.atmosphere.websocket
Interface WebSocketSupport
- All Known Implementing Classes:
- GlassFishWebSocketSupport.GrizzlyWebSocketSupport, JettyWebSocketSupport
public interface WebSocketSupport
All CometSupport implementation that support WebSocket must provide an implementation
of this class, which is used for writing websocket message.
- Author:
- Jeanfrancois Arcand
WEBSOCKET_SUSPEND
static final String WEBSOCKET_SUSPEND
WEBSOCKET_RESUME
static final String WEBSOCKET_RESUME
writeError
void writeError(int errorCode,
String message)
throws IOException
- Throws:
IOException
redirect
void redirect(String location)
throws IOException
- Throws:
IOException
write
void write(byte frame,
String data)
throws IOException
- Throws:
IOException
write
void write(byte frame,
byte[] data)
throws IOException
- Throws:
IOException
write
void write(byte frame,
byte[] data,
int offset,
int length)
throws IOException
- Throws:
IOException
close
void close()
throws IOException
- Throws:
IOException
Copyright © 2011. All Rights Reserved.