org.littleshoot.stun.stack
Class StunDemuxableProtocolCodecFactory

java.lang.Object
  extended by org.littleshoot.stun.stack.StunDemuxableProtocolCodecFactory
All Implemented Interfaces:
org.littleshoot.util.mina.DemuxableProtocolCodecFactory<StunMessage>

public class StunDemuxableProtocolCodecFactory
extends Object
implements org.littleshoot.util.mina.DemuxableProtocolCodecFactory<StunMessage>

DemuxableProtocolCodecFactory for STUN.


Constructor Summary
StunDemuxableProtocolCodecFactory()
           
 
Method Summary
 boolean canDecode(org.littleshoot.mina.common.ByteBuffer in)
           
 boolean enoughData(org.littleshoot.mina.common.ByteBuffer in)
           
 Class<StunMessage> getClassToEncode()
           
 org.littleshoot.util.mina.DemuxableProtocolDecoder newDecoder()
           
 org.littleshoot.mina.filter.codec.ProtocolEncoder newEncoder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StunDemuxableProtocolCodecFactory

public StunDemuxableProtocolCodecFactory()
Method Detail

canDecode

public boolean canDecode(org.littleshoot.mina.common.ByteBuffer in)
Specified by:
canDecode in interface org.littleshoot.util.mina.DemuxableProtocolCodecFactory<StunMessage>

getClassToEncode

public Class<StunMessage> getClassToEncode()
Specified by:
getClassToEncode in interface org.littleshoot.util.mina.DemuxableProtocolCodecFactory<StunMessage>

newDecoder

public org.littleshoot.util.mina.DemuxableProtocolDecoder newDecoder()
Specified by:
newDecoder in interface org.littleshoot.util.mina.DemuxableProtocolCodecFactory<StunMessage>

newEncoder

public org.littleshoot.mina.filter.codec.ProtocolEncoder newEncoder()
Specified by:
newEncoder in interface org.littleshoot.util.mina.DemuxableProtocolCodecFactory<StunMessage>

enoughData

public boolean enoughData(org.littleshoot.mina.common.ByteBuffer in)
Specified by:
enoughData in interface org.littleshoot.util.mina.DemuxableProtocolCodecFactory<StunMessage>


Copyright © 2013 LittleShoot. All Rights Reserved.