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

Field Summary
static String WEBSOCKET_RESUME
           
static String WEBSOCKET_SUSPEND
           
 
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)
           
 

Field Detail

WEBSOCKET_SUSPEND

static final String WEBSOCKET_SUSPEND

WEBSOCKET_RESUME

static final String WEBSOCKET_RESUME
Method Detail

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.