|
||||||||||
| 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(java.nio.channels.SocketChannel channel,
NioHandler nioHandler,
TrafficLogger tl,
HttpHeader header,
boolean fullURI,
HttpHeaderSentListener sender)
|
|
| Method Summary | |
|---|---|
void |
blockSent()
The http header has been sent. |
void |
failed(java.lang.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(java.nio.channels.SocketChannel channel,
NioHandler nioHandler,
TrafficLogger tl,
HttpHeader header,
boolean fullURI,
HttpHeaderSentListener sender)
throws java.io.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
java.io.IOException - if the header can not be converted to network data| Method Detail |
|---|
public void sendHeader()
public void timeout()
AsyncListener
timeout in interface AsyncListenerpublic void failed(java.lang.Exception cause)
AsyncListener
failed in interface AsyncListenercause - 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 | |||||||||