java.lang.Object
java.util.Observable
org.vrspace.server.Session
org.vrspace.server.PipedSession
- All Implemented Interfaces:
- java.util.Observer, java.lang.Runnable
- public class PipedSession
- extends Session
- implements java.util.Observer
| Fields inherited from class org.vrspace.server.Session |
active, cacheRequests, client, daemon, dispatcher, lastTime, lf, receivedChars, receivedRequests, RESPONSE_ERR, RESPONSE_NONE, RESPONSE_OK, sentChars, sentRequests, server, socket, startTime, stopTime, TERMINATOR, writer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connection
PipedConnection connection
requests
org.vrspace.util.Queue requests
PipedSession
public PipedSession(Server server,
java.lang.String login,
java.lang.String password)
throws java.lang.Exception
PipedSession
public PipedSession(PipedConnection connection,
Server server,
Dispatcher dispatcher)
getId
public java.lang.String getId()
- Description copied from class:
Session
- Returns the session id in format remoteHost:remotePort
- Overrides:
getId in class Session
update
public void update(java.util.Observable o,
java.lang.Object msg)
- Description copied from interface:
java.util.Observer
- This method is called whenever the observable object changes, and has
called
notifyObservers. The Observable object can pass
arbitrary information in the second parameter.
- Specified by:
update in interface java.util.Observer
write
protected void write(java.lang.String type,
org.vrspace.util.Message r)
- Sends s to the client, appending TERMINATOR as necessary.
- Overrides:
write in class Session
read
protected java.lang.String read()
- Returns one line read from the network.
- Overrides:
read in class Session
getConnection
public org.vrspace.util.Connection getConnection()