public class DefaultBootstrapDataProcessor extends Object implements KaaDataMultiplexer, KaaDataDemultiplexer
Constructor and Description |
---|
DefaultBootstrapDataProcessor() |
Modifier and Type | Method and Description |
---|---|
byte[] |
compileRequest(Map<org.kaaproject.kaa.common.TransportType,ChannelDirection> types)
Compiles request for given transport types.
|
void |
postProcess()
Define routines to be executed after response is processed.
|
void |
preProcess()
Routines to be executed before response will be processed
|
void |
processResponse(byte[] response)
Processes the given response bytes.
|
void |
setBootstrapTransport(BootstrapTransport transport) |
public void setBootstrapTransport(BootstrapTransport transport)
public byte[] compileRequest(Map<org.kaaproject.kaa.common.TransportType,ChannelDirection> types) throws IOException
KaaDataMultiplexer
compileRequest
in interface KaaDataMultiplexer
types
- map of types to be polled.IOException
TransportType
,
ChannelDirection
public void processResponse(byte[] response) throws IOException
KaaDataDemultiplexer
processResponse
in interface KaaDataDemultiplexer
response
- buffer which to be processed.IOException
public void preProcess()
KaaDataDemultiplexer
preProcess
in interface KaaDataDemultiplexer
public void postProcess()
KaaDataDemultiplexer
postProcess
in interface KaaDataDemultiplexer
Copyright © 2014. All rights reserved.