com.crankuptheamps.client
Interface TransportFilter

All Known Implementing Classes:
DefaultTransportFilter, TransportTraceFilter

public interface TransportFilter

Filter raw incoming and outgoing data on a Transport.


Method Summary
 void incoming(ByteBuffer data)
          Called just after raw data is received from the AMPS instance.
 void outgoing(ByteBuffer data)
          Called when (typically just before) raw data is sent to the AMPS instance.
 

Method Detail

outgoing

void outgoing(ByteBuffer data)
Called when (typically just before) raw data is sent to the AMPS instance.

Parameters:
data - A ByteBuffer containing raw data to be sent to the AMPS instance.

incoming

void incoming(ByteBuffer data)
Called just after raw data is received from the AMPS instance.

Parameters:
data - A ByteBuffer containing raw data from the AMPS instance.