org.atmosphere.websocket
Interface WebSocketResponseFilter

All Known Implementing Classes:
WebSocketResponseFilter.NoOpsWebSocketResponseFilter

Deprecated. - Use AsyncIOWriter} and AtmosphereInterceptor instead.

public interface WebSocketResponseFilter

Implementation of this interface allow the customization of the WebSocket message before it gets send.


Nested Class Summary
static class WebSocketResponseFilter.NoOpsWebSocketResponseFilter
          Deprecated.  
 
Field Summary
static WebSocketResponseFilter NOOPS_WebSocketResponseFilter
          Deprecated.  
 
Method Summary
 byte[] filter(AtmosphereResponse r, byte[] message)
          Deprecated. Transform of filter the message, return a new one or the same
 byte[] filter(AtmosphereResponse r, byte[] message, int offset, int length)
          Deprecated. Transform of filter the message, return a new one or the same
 String filter(AtmosphereResponse r, String message)
          Deprecated. Transform of filter the message, return a new one or the same
 

Field Detail

NOOPS_WebSocketResponseFilter

static final WebSocketResponseFilter NOOPS_WebSocketResponseFilter
Deprecated. 
Method Detail

filter

String filter(AtmosphereResponse r,
              String message)
Deprecated. 
Transform of filter the message, return a new one or the same

Parameters:
message - the Websocket text message
Returns:
a new message

filter

byte[] filter(AtmosphereResponse r,
              byte[] message)
Deprecated. 
Transform of filter the message, return a new one or the same

Parameters:
message - the Websocket bytes message
Returns:
a new message

filter

byte[] filter(AtmosphereResponse r,
              byte[] message,
              int offset,
              int length)
Deprecated. 
Transform of filter the message, return a new one or the same

Parameters:
message - the Websocket bytes message
Returns:
a new message


Copyright © 2012. All Rights Reserved.