|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rabbit.handler.BaseHandler rabbit.handler.FilterHandler
This class is used to filter html pages.
Constructor Summary | |
FilterHandler(Connection con,
HTTPHeader request,
HTTPHeader response,
java.io.InputStream contentstream,
MultiOutputStream clientstream,
boolean maycache,
boolean mayfilter,
long size)
Create a new FilterHandler for the given request. |
Method Summary | |
void |
handle()
Handle the request. |
void |
send()
Send the actual data (read data, filter data, send data). |
static void |
setup(java.util.Properties prop)
Setup this class. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FilterHandler(Connection con, HTTPHeader request, HTTPHeader response, java.io.InputStream contentstream, MultiOutputStream clientstream, boolean maycache, boolean mayfilter, long size)
con
- the Connection handling the request.request
- the actual request made.response
- the actual response.contentstream
- the stream to read data from.clientstream
- the stream to write data to.maycache
- May we cache this request?mayfilter
- May we filter this request?size
- the size of the data beeing handled.Method Detail |
public void handle() throws java.io.IOException
BaseHandler
handle
in interface Handler
handle
in class BaseHandler
java.io.IOException
- if any of the underlying methods does.public void send() throws java.io.IOException
java.io.IOException
- if reading or writing of the data fails.public static void setup(java.util.Properties prop)
prop
- the properties of this class.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |