public class HttpSenderOverSPDY extends HttpSender
LOG
Constructor and Description |
---|
HttpSenderOverSPDY(HttpChannelOverSPDY channel) |
Modifier and Type | Method and Description |
---|---|
HttpChannelOverSPDY |
getHttpChannel() |
protected void |
reset() |
protected void |
sendContent(HttpExchange exchange,
HttpContent content,
Callback callback)
Implementations should send the content at the
HttpContent cursor position over the wire. |
protected void |
sendHeaders(HttpExchange exchange,
HttpContent content,
Callback callback)
Implementations should send the HTTP headers over the wire, possibly with some content,
in a single write, and notify the given
callback of the result of this operation. |
abort, anyToFailure, beginToHeaders, dispose, expects100Continue, getHttpExchange, headersToCommit, onContent, proceed, queuedToBegin, send, someToContent, someToSuccess
public HttpSenderOverSPDY(HttpChannelOverSPDY channel)
public HttpChannelOverSPDY getHttpChannel()
getHttpChannel
in class HttpSender
protected void sendHeaders(HttpExchange exchange, HttpContent content, Callback callback)
HttpSender
callback
of the result of this operation.
If there is more content to send, then HttpSender.sendContent(HttpExchange, HttpContent, Callback)
will be invoked.sendHeaders
in class HttpSender
exchange
- the exchange to sendcontent
- the content to sendcallback
- the callback to notifyprotected void sendContent(HttpExchange exchange, HttpContent content, Callback callback)
HttpSender
HttpContent
cursor position over the wire.
The HttpContent
cursor is advanced by HttpSender
at the right time, and if more
content needs to be sent, this method is invoked again; subclasses need only to send the content
at the HttpContent
cursor position.
This method is invoked one last time when HttpContent.isConsumed()
is true and therefore
there is no actual content to send.
This is done to allow subclasses to write "terminal" bytes (such as the terminal chunk when the
transfer encoding is chunked) if their protocol needs to.sendContent
in class HttpSender
exchange
- the exchange to sendcontent
- the content to sendcallback
- the callback to notifyprotected void reset()
reset
in class HttpSender
Copyright © 1995-2015 Webtide. All Rights Reserved.