org.apache.synapse.transport.pipe
Interface Protocol

All Known Implementing Classes:
EndDelimitedProtocol

public interface Protocol

Datagram stream protocol implementation.

This interface is used to define protocols that encapsulate sequences of datagrams into streams.

Note that implementations of this interface are supposed to be stateless. The decoding is handled by ProtocolDecoder implementations which are statefull.


Method Summary
 ProtocolDecoder createProtocolDecoder()
          Create a new protocol decoder for this protocol implementation.
 void init(ParameterInclude paramInclude)
          Initialize this protocol implementation using a given set of parameters.
 

Method Detail

init

void init(ParameterInclude paramInclude)
          throws AxisFault
Initialize this protocol implementation using a given set of parameters.

Parameters:
paramInclude - the set of parameters to use
Throws:
AxisFault - if the protocol implementation failed to initialize

createProtocolDecoder

ProtocolDecoder createProtocolDecoder()
Create a new protocol decoder for this protocol implementation.

Returns:
the protocol decoder


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.