org.atmosphere.websocket
Interface WebSocketResponseFilter

All Known Implementing Classes:
WebSocketResponseFilter.NoOpsWebSocketResponseFilter

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
           
 
Field Summary
static WebSocketResponseFilter NOOPS_WebSocketResponseFilter
           
 
Method Summary
 byte[] filter(AtmosphereResponse r, byte[] message)
          Transform of filter the message, return a new one or the same
 byte[] filter(AtmosphereResponse r, byte[] message, int offset, int length)
          Transform of filter the message, return a new one or the same
 String filter(AtmosphereResponse r, String message)
          Transform of filter the message, return a new one or the same
 

Field Detail

NOOPS_WebSocketResponseFilter

static final WebSocketResponseFilter NOOPS_WebSocketResponseFilter
Method Detail

filter

String filter(AtmosphereResponse r,
              String message)
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)
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)
Transform of filter the message, return a new one or the same

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


Copyright © 2013. All Rights Reserved.