public class HttpReceiverOverSPDY extends HttpReceiver implements StreamFrameListener
StreamFrameListener.Adapter
LOG
Constructor and Description |
---|
HttpReceiverOverSPDY(HttpChannelOverSPDY channel) |
Modifier and Type | Method and Description |
---|---|
HttpChannelOverSPDY |
getHttpChannel() |
void |
onData(Stream stream,
DataInfo dataInfo)
Callback invoked when data bytes are received on a stream.
|
void |
onFailure(Stream stream,
Throwable x)
Callback invoked on errors.
|
void |
onHeaders(Stream stream,
HeadersInfo headersInfo)
Callback invoked when headers are received on a stream.
|
StreamFrameListener |
onPush(Stream stream,
PushInfo pushInfo)
Callback invoked when a push syn has been received on a stream.
|
void |
onReply(Stream stream,
ReplyInfo replyInfo)
Callback invoked when a reply to a stream creation has been received.
|
abort, dispose, getHttpDestination, getHttpExchange, reset, responseBegin, responseContent, responseFailure, responseHeader, responseHeaders, responseSuccess, storeCookie
public HttpReceiverOverSPDY(HttpChannelOverSPDY channel)
public HttpChannelOverSPDY getHttpChannel()
getHttpChannel
in class HttpReceiver
public void onReply(Stream stream, ReplyInfo replyInfo)
StreamFrameListener
Callback invoked when a reply to a stream creation has been received.
Application code may implement this method to send more data to the other end:
public void onReply(Stream stream, ReplyInfo replyInfo) { stream.data(new StringDataInfo("content"), true); }
onReply
in interface StreamFrameListener
stream
- the streamreplyInfo
- the reply metadatapublic StreamFrameListener onPush(Stream stream, PushInfo pushInfo)
StreamFrameListener
Callback invoked when a push syn has been received on a stream.
onPush
in interface StreamFrameListener
stream
- the push stream just createdpushInfo
- the push metadatapublic void onHeaders(Stream stream, HeadersInfo headersInfo)
StreamFrameListener
Callback invoked when headers are received on a stream.
onHeaders
in interface StreamFrameListener
stream
- the streamheadersInfo
- the headers metadatapublic void onData(Stream stream, DataInfo dataInfo)
StreamFrameListener
Callback invoked when data bytes are received on a stream.
Implementers should be read or consume the content of the
DataInfo
before this method returns.
onData
in interface StreamFrameListener
stream
- the streamdataInfo
- the data metadatapublic void onFailure(Stream stream, Throwable x)
StreamFrameListener
Callback invoked on errors.
onFailure
in interface StreamFrameListener
stream
- the streamx
- the failureCopyright © 1995-2015 Webtide. All Rights Reserved.