org.llrp.ltk.net
Class LLRPProtocolCodecFactory

java.lang.Object
  extended by org.llrp.ltk.net.LLRPProtocolCodecFactory
All Implemented Interfaces:
org.apache.mina.filter.codec.ProtocolCodecFactory

public class LLRPProtocolCodecFactory
extends java.lang.Object
implements org.apache.mina.filter.codec.ProtocolCodecFactory

Codec Factory for LLRP protocol


Field Summary
static int BINARY_ENCODING
           
 
Constructor Summary
LLRPProtocolCodecFactory(int type)
          LLRPProtocolCodecFactory supports a single encoder/decoder type only: The binary message binding in the LLRP specification.
 
Method Summary
 org.apache.mina.filter.codec.ProtocolDecoder getDecoder()
          get protocol decoder.
 org.apache.mina.filter.codec.ProtocolDecoder getDecoder(org.apache.mina.common.IoSession session)
          get protocol decoder for session specified.
 org.apache.mina.filter.codec.ProtocolEncoder getEncoder()
          get protocol encoder.
 org.apache.mina.filter.codec.ProtocolEncoder getEncoder(org.apache.mina.common.IoSession session)
          get protocol encoder for session specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BINARY_ENCODING

public static final int BINARY_ENCODING
See Also:
Constant Field Values
Constructor Detail

LLRPProtocolCodecFactory

public LLRPProtocolCodecFactory(int type)
LLRPProtocolCodecFactory supports a single encoder/decoder type only: The binary message binding in the LLRP specification.

Parameters:
type - Codec to be used (currently only LLRPProtocolCodecFactory.BINARY_ENCODING is supported)
Method Detail

getDecoder

public org.apache.mina.filter.codec.ProtocolDecoder getDecoder(org.apache.mina.common.IoSession session)
                                                        throws java.lang.Exception
get protocol decoder for session specified. There is currently only a LLRPBinaryDecoder supported.

Parameters:
session -
Returns:
ProtocolDecoder
Throws:
java.lang.Exception

getEncoder

public org.apache.mina.filter.codec.ProtocolEncoder getEncoder(org.apache.mina.common.IoSession session)
                                                        throws java.lang.Exception
get protocol encoder for session specified. There is currently only a LLRPBinaryEncoder supported.

Parameters:
session -
Returns:
ProtocolEncoder
Throws:
java.lang.Exception

getDecoder

public org.apache.mina.filter.codec.ProtocolDecoder getDecoder()
                                                        throws java.lang.Exception
get protocol decoder. There is currently only a LLRPBinaryDecoder supported.

Specified by:
getDecoder in interface org.apache.mina.filter.codec.ProtocolCodecFactory
Returns:
ProtocolDecoder
Throws:
java.lang.Exception

getEncoder

public org.apache.mina.filter.codec.ProtocolEncoder getEncoder()
                                                        throws java.lang.Exception
get protocol encoder. There is currently only a LLRPBinaryEncoder supported.

Specified by:
getEncoder in interface org.apache.mina.filter.codec.ProtocolCodecFactory
Returns:
ProtocolEncoder
Throws:
java.lang.Exception


Copyright © 2007 ETH Zurich.