|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.meta.BaseMetaHandler
public abstract class BaseMetaHandler
A base class for meta handlers. This meta handler will send a http header that say that the content is chunked. Then
| Nested Class Summary | |
|---|---|
static class |
BaseMetaHandler.PageCompletion
|
| Field Summary | |
|---|---|
protected Connection |
con
|
protected SProperties |
htab
|
protected HttpHeader |
request
|
protected TrafficLogger |
tlClient
|
protected TrafficLogger |
tlProxy
|
| Constructor Summary | |
|---|---|
BaseMetaHandler()
|
|
| Method Summary | |
|---|---|
protected abstract BaseMetaHandler.PageCompletion |
addPageInformation(StringBuilder sb)
Add the page information |
void |
blockSent()
The http header has been sent. |
protected void |
buildAndSendData()
|
protected void |
cleanup()
|
protected void |
endChunking()
|
void |
failed(Exception e)
Reading failed |
protected abstract String |
getPageHeader()
Get the page header name |
void |
handle(HttpHeader request,
SProperties htab,
Connection con,
TrafficLogger tlProxy,
TrafficLogger tlClient)
Handle a client request. |
void |
timeout()
The operation timed out |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HttpHeader request
protected SProperties htab
protected Connection con
protected TrafficLogger tlProxy
protected TrafficLogger tlClient
| Constructor Detail |
|---|
public BaseMetaHandler()
| Method Detail |
|---|
public void handle(HttpHeader request,
SProperties htab,
Connection con,
TrafficLogger tlProxy,
TrafficLogger tlClient)
throws IOException
MetaHandler
handle in interface MetaHandlerrequest - the http request header.htab - the supplied argument to the page (CGI-parameters).con - the Connection that is serving the request.tlProxy - the TrafficLogger to log proxy traffic on.tlClient - the TrafficLogger to log client traffic on.
IOExceptionpublic void blockSent()
BlockSentListener
blockSent in interface BlockSentListener
protected void cleanup()
throws IOException
IOException
protected void endChunking()
throws IOException
IOException
protected void buildAndSendData()
throws IOException
IOExceptionprotected abstract String getPageHeader()
protected abstract BaseMetaHandler.PageCompletion addPageInformation(StringBuilder sb)
sb - The page being build.
public void failed(Exception e)
AsyncListener
failed in interface AsyncListenere - the real reason the operation failed.public void timeout()
AsyncListener
timeout in interface AsyncListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||