org.vrspace.server
Class PipedSession

java.lang.Object
  extended byjava.util.Observable
      extended byorg.vrspace.server.Session
          extended byorg.vrspace.server.PipedSession
All Implemented Interfaces:
java.util.Observer, java.lang.Runnable

public class PipedSession
extends Session
implements java.util.Observer


Nested Class Summary
 
Nested classes inherited from class org.vrspace.server.Session
Session.Status
 
Field Summary
 
Fields inherited from class org.vrspace.server.Session
active, cacheRequests, client, daemon, debugLevel, dispatcher, lastTime, lf, preserveSocket, receivedChars, receivedRequests, relogin, RESPONSE_ERR, RESPONSE_NONE, RESPONSE_OK, sentChars, sentRequests, server, socket, startTime, stopTime, TERMINATOR, writer
 
Constructor Summary
PipedSession(PipedConnection connection, Server server, Dispatcher dispatcher)
           
PipedSession(Server server, java.lang.String login, java.lang.String password)
           
 
Method Summary
 Connection getConnection()
           
 java.lang.String getId()
          Returns the session id in format remoteHost:remotePort
protected  java.lang.String read()
          Returns one line read from the network.
 void update(java.util.Observable o, java.lang.Object msg)
           
protected  void write(java.lang.String type, Message r)
          Sends s to the client, appending TERMINATOR as necessary.
 
Methods inherited from class org.vrspace.server.Session
close, debug, flushRequests, getAddress, getSocket, getStatus, isActive, readln, run, sendError, sendRequest, sendResponse, terminate, terminate
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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)
Specified by:
update in interface java.util.Observer

write

protected void write(java.lang.String type,
                     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 Connection getConnection()