|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.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()
Send the header |
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
channel
- the SocketChannel to write the header tonioHandler
- the NioHandler to use to wait for write readytl
- the statics gatherer to useheader
- the HttpHeader to sendfullURI
- if false then try to change header.uri into just the filesender
- the listener that will be notified when the header has
been sent (or sending has failed
IOException
- if the header can not be converted to network dataMethod Detail |
---|
public void sendHeader()
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 |