com.multisoftgroup.jerry.jabber.xmpp
Class DefaultSessionProcessor
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HOST_NAME
protected static final String HOST_NAME
log
protected org.apache.log4j.Logger log
router
protected IMRouter router
DefaultSessionProcessor
public DefaultSessionProcessor()
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