com.multisoftgroup.jerry.jabber.xmpp
Class DefaultSessionProcessor

java.lang.Object
  extended by com.multisoftgroup.jerry.jabber.xmpp.DefaultSessionProcessor
All Implemented Interfaces:
SessionProcessor
Direct Known Subclasses:
BodyImpl, ErrorImpl, IMMessageComposingEvent, IqImpl, MessageImpl, PresenceImpl, PriorityImpl, ShowImpl, StatusImpl, StreamsImpl, SubjectImpl, ThreadImpl, X

public class DefaultSessionProcessor
extends Object
implements SessionProcessor


Field Summary
protected static String HOST_NAME
           
protected  org.apache.log4j.Logger log
           
protected  IMRouter router
           
 
Constructor Summary
DefaultSessionProcessor()
           
 
Method Summary
protected  String asString(org.xmlpull.v1.XmlPullParser xpp)
           
protected  String getEventName(IMSession session, String currentNamespace, String name)
           
protected  String getNamespace(IMSession session, String current)
           
 void initProcess(IMSession session)
           
 void process(IMSession session, Object context)
           
 void processEndTag(IMSession session, Object context)
           
 void processStartTag(IMSession session, Object context)
           
 void processText(IMSession session, Object context)
           
protected  void route(IMSession currentSession, Packet transit)
           
protected  StringBuffer serialize(org.xmlpull.v1.XmlPullParser xpp)
           
protected  void skip(org.xmlpull.v1.XmlPullParser xpp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOST_NAME

protected static final String HOST_NAME

log

protected org.apache.log4j.Logger log

router

protected IMRouter router
Constructor Detail

DefaultSessionProcessor

public DefaultSessionProcessor()
Method Detail

initProcess

public void initProcess(IMSession session)
                 throws Exception
Specified by:
initProcess in interface SessionProcessor
Throws:
Exception

process

public void process(IMSession session,
                    Object context)
             throws Exception
Specified by:
process in interface SessionProcessor
Throws:
Exception

processStartTag

public void processStartTag(IMSession session,
                            Object context)
                     throws Exception
Throws:
Exception

processEndTag

public void processEndTag(IMSession session,
                          Object context)
                   throws Exception
Throws:
Exception

processText

public void processText(IMSession session,
                        Object context)
                 throws Exception
Throws:
Exception

skip

protected void skip(org.xmlpull.v1.XmlPullParser xpp)
             throws org.xmlpull.v1.XmlPullParserException,
                    IOException
Throws:
org.xmlpull.v1.XmlPullParserException
IOException

serialize

protected StringBuffer serialize(org.xmlpull.v1.XmlPullParser xpp)
                          throws org.xmlpull.v1.XmlPullParserException,
                                 IOException
Throws:
org.xmlpull.v1.XmlPullParserException
IOException

asString

protected String asString(org.xmlpull.v1.XmlPullParser xpp)
                   throws org.xmlpull.v1.XmlPullParserException
Throws:
org.xmlpull.v1.XmlPullParserException

getEventName

protected String getEventName(IMSession session,
                              String currentNamespace,
                              String name)

getNamespace

protected String getNamespace(IMSession session,
                              String current)

route

protected void route(IMSession currentSession,
                     Packet transit)
              throws IOException
Throws:
IOException