|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.crankuptheamps.client.TransportTraceFilter
public class TransportTraceFilter
An implementation of TransportFilter for tracing message bytes to an OutputStream such as System.err. To use, instantiate and then pass to Transport's setTransportFilter, for example: Client client = new Client(...); client.connect(...); client.getTransport().setTransportFilter( new TransportTraceFilter(System.err) );
| Constructor Summary | |
|---|---|
TransportTraceFilter(OutputStream stream_)
Construct a TransportTraceFilter to trace messages on stream_. |
|
| 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. |
protected void |
print(String prefix,
ByteBuffer data)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransportTraceFilter(OutputStream stream_)
stream_ - The OutputStream to trace messages to.| Method Detail |
|---|
protected void print(String prefix,
ByteBuffer data)
public void outgoing(ByteBuffer data)
TransportFilter
outgoing in interface TransportFilterdata - A ByteBuffer containing raw data to be sent to the AMPS instance.public void incoming(ByteBuffer data)
TransportFilter
incoming in interface TransportFilterdata - A ByteBuffer containing raw data from the AMPS instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||