org.vrspace.server
Class GZipSession

java.lang.Object
  extended byjava.util.Observable
      extended byorg.vrspace.server.Session
          extended byorg.vrspace.server.BinarySession
              extended byorg.vrspace.server.GZipSession
All Implemented Interfaces:
java.lang.Runnable

public class GZipSession
extends BinarySession

A GZip compressed session. Probably does not work.

See Also:
GZipConnection

Nested Class Summary
 
Nested classes inherited from class org.vrspace.server.Session
Session.Status
 
Field Summary
 
Fields inherited from class org.vrspace.server.BinarySession
buffer, filter, in, out, output, receivedBytes, sentBytes
 
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
GZipSession(java.net.Socket s, Dispatcher d, java.io.OutputStream out)
          Creates new Session which will write bytes to out
GZipSession(java.net.Socket s, Dispatcher d, java.io.OutputStream out, Filter filter)
          Creates new Session which will write bytes to out after filtering them with filter
 
Method Summary
protected  void write(java.lang.String s)
          Sends s to the client
 
Methods inherited from class org.vrspace.server.BinarySession
close, readln, write, write
 
Methods inherited from class org.vrspace.server.Session
debug, flushRequests, getAddress, getId, getSocket, getStatus, isActive, read, run, sendError, sendRequest, sendResponse, terminate, terminate, write
 
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

GZipSession

public GZipSession(java.net.Socket s,
                   Dispatcher d,
                   java.io.OutputStream out)
            throws java.io.IOException
Creates new Session which will write bytes to out


GZipSession

public GZipSession(java.net.Socket s,
                   Dispatcher d,
                   java.io.OutputStream out,
                   Filter filter)
            throws java.io.IOException
Creates new Session which will write bytes to out after filtering them with filter

Method Detail

write

protected void write(java.lang.String s)
Sends s to the client