|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rabbit.httpio.HttpHeaderSender
public class HttpHeaderSender
A handler that writes http headers
Constructor Summary | |
---|---|
HttpHeaderSender(SocketChannel channel,
NioHandler nioHandler,
TrafficLogger tl,
HttpHeader header,
boolean fullURI,
HttpHeaderSentListener sender)
|
Method Summary | |
---|---|
void |
blockSent()
The http header has been sent. |
void |
failed(Exception cause)
Reading failed |
void |
sendHeader()
|
void |
timeout()
The operation timed out |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpHeaderSender(SocketChannel channel, NioHandler nioHandler, TrafficLogger tl, HttpHeader header, boolean fullURI, HttpHeaderSentListener sender) throws IOException
fullURI
- if false then try to change header.uri into just the file.
IOException
Method Detail |
---|
public void sendHeader() throws IOException
IOException
public void timeout()
AsyncListener
timeout
in interface AsyncListener
public void failed(Exception cause)
AsyncListener
failed
in interface AsyncListener
cause
- the real reason the operation failed.public void blockSent()
BlockSentListener
blockSent
in interface BlockSentListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |