|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.kosi.session.Session
This class represents a Session. It is created on the server, when a client logs on and is passed as an implicit parameter to every method call afterwards.
ChangeLog:
$Log: Session.java,v $ Revision 1.3 2001/06/04 14:21:10 jiriki Made source more comliant to coding guidelines.
| Constructor Summary | |
Session()
Creates a new Session. |
|
| Method Summary | |
static Session |
createInvalidSession()
Creates a new invalid session. |
static Session |
createSession()
Creates a new (valid) session, with a new session id. |
boolean |
equals(java.lang.Object obj)
Compares this session to an object. |
int |
hashCode()
Returns the hash code for this session. |
void |
readExternal(java.io.ObjectInput in)
Reads a session from an ObjectInput Stream. |
java.lang.String |
toString()
Returns a string representation of the session. |
void |
writeExternal(java.io.ObjectOutput out)
Writes this object to an ObjectOutput Stream. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Session()
| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object this session is compared to.public static Session createSession()
public static Session createInvalidSession()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - the ObjectOutput Stream this session should be written to.java.io.IOException - if ObjectOutput throws an IOException.
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.Externalizablein - the ObjectOutput Stream this session should be read fromjava.io.IOException - if ObjectInputs throws an IOException.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||