com.multisoftgroup.jerry.jabber.session
Class AbstractIMSession

java.lang.Object
  extended by com.multisoftgroup.jerry.jabber.session.AbstractIMSession
All Implemented Interfaces:
IMSession
Direct Known Subclasses:
IMClientSessionImpl

public abstract class AbstractIMSession
extends Object
implements IMSession


Field Summary
protected  String defaultEncoding
           
protected  Boolean disposed
           
protected static Long lastSessionId
           
protected  OutputStreamWriter outputStreamWriter
           
protected  long sessionId
           
protected  Socket socket
           
 
Fields inherited from interface com.multisoftgroup.jerry.jabber.session.IMSession
C2S_CONNECTION, S2S_L2R_CONNECTION, S2S_R2L_CONNECTION, UNKNOWN_CONNECTION
 
Constructor Summary
AbstractIMSession()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getEncoding()
           
 long getId()
           
 Streams getStreams()
           
 org.xmlpull.v1.XmlPullParser getXmlPullParser()
           
 int hashCode()
           
 boolean isClosed()
           
 void setStreams(Streams streams)
           
 void setup(Socket socket)
           
 String toString()
           
 void writeOutputStream(String s)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.multisoftgroup.jerry.jabber.session.IMSession
close, getConnectionType
 

Field Detail

defaultEncoding

protected String defaultEncoding

outputStreamWriter

protected OutputStreamWriter outputStreamWriter

socket

protected Socket socket

disposed

protected volatile Boolean disposed

sessionId

protected long sessionId

lastSessionId

protected static Long lastSessionId
Constructor Detail

AbstractIMSession

public AbstractIMSession()
Method Detail

isClosed

public boolean isClosed()
Specified by:
isClosed in interface IMSession

setup

public void setup(Socket socket)
           throws Exception
Specified by:
setup in interface IMSession
Throws:
Exception

getXmlPullParser

public final org.xmlpull.v1.XmlPullParser getXmlPullParser()
Specified by:
getXmlPullParser in interface IMSession

getId

public final long getId()
Specified by:
getId in interface IMSession

getEncoding

public final String getEncoding()
Specified by:
getEncoding in interface IMSession

writeOutputStream

public final void writeOutputStream(String s)
Specified by:
writeOutputStream in interface IMSession

setStreams

public void setStreams(Streams streams)

getStreams

public Streams getStreams()
Specified by:
getStreams in interface IMSession

toString

public final String toString()
Overrides:
toString in class Object

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object