rabbit.meta
Class FileSender

java.lang.Object
  extended byrabbit.meta.FileSender
All Implemented Interfaces:
MetaHandler

public class FileSender
extends java.lang.Object
implements MetaHandler

A class to send files from the htdocs directory. This makes RabbIT act as a very simple web server.


Constructor Summary
FileSender()
           
 
Method Summary
 void handle(java.io.InputStream input, MultiOutputStream output, HTTPHeader header, java.util.Properties htab, Connection con)
          handler of a MetaPage, that is a special page the proxy supports (like the status page).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSender

public FileSender()
Method Detail

handle

public void handle(java.io.InputStream input,
                   MultiOutputStream output,
                   HTTPHeader header,
                   java.util.Properties htab,
                   Connection con)
handler of a MetaPage, that is a special page the proxy supports (like the status page).

Specified by:
handle in interface MetaHandler
Parameters:
input - the InputStream from the client.
output - the OutputStream to the client.
header - the http request header
htab - the supplied argument to the page (CGI-parameters).
con - the Connection that is serving the request.