org.lastbamboo.common.sip.stack.codec.encoder
Class SipMessageProtocolEncoder

java.lang.Object
  extended by org.lastbamboo.common.sip.stack.codec.encoder.SipMessageProtocolEncoder
All Implemented Interfaces:
EventListener, org.littleshoot.mina.common.IoFutureListener, org.littleshoot.mina.filter.codec.ProtocolEncoder

public class SipMessageProtocolEncoder
extends Object
implements org.littleshoot.mina.filter.codec.ProtocolEncoder, org.littleshoot.mina.common.IoFutureListener

ProtocolEncoder for SIP messages. The actual encoding takes place in a delegate class for easier testing.


Field Summary
 
Fields inherited from interface org.littleshoot.mina.common.IoFutureListener
CLOSE
 
Constructor Summary
SipMessageProtocolEncoder()
           
 
Method Summary
 void dispose(org.littleshoot.mina.common.IoSession session)
           
 void encode(org.littleshoot.mina.common.IoSession session, Object message, org.littleshoot.mina.filter.codec.ProtocolEncoderOutput out)
           
 void operationComplete(org.littleshoot.mina.common.IoFuture future)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SipMessageProtocolEncoder

public SipMessageProtocolEncoder()
Method Detail

encode

public void encode(org.littleshoot.mina.common.IoSession session,
                   Object message,
                   org.littleshoot.mina.filter.codec.ProtocolEncoderOutput out)
            throws Exception
Specified by:
encode in interface org.littleshoot.mina.filter.codec.ProtocolEncoder
Throws:
Exception

dispose

public void dispose(org.littleshoot.mina.common.IoSession session)
             throws Exception
Specified by:
dispose in interface org.littleshoot.mina.filter.codec.ProtocolEncoder
Throws:
Exception

operationComplete

public void operationComplete(org.littleshoot.mina.common.IoFuture future)
Specified by:
operationComplete in interface org.littleshoot.mina.common.IoFutureListener


Copyright © 2013 LittleShoot. All Rights Reserved.