public class SpdyStream extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected boolean |
finRcvd |
protected boolean |
finSent |
SpdyFrame |
reqFrame |
SpdyFrame |
resFrame |
Constructor and Description |
---|
SpdyStream(SpdyConnection spdy) |
Modifier and Type | Method and Description |
---|---|
void |
dump(PrintWriter out) |
SpdyFrame |
getDataFrame(long to)
Waits and return the next data frame, null on timeout.
|
SpdyFrame |
getFrame(long to)
Waits and return the next frame.
|
void |
getHeaders(Map<String,String> resHeaders) |
InputStream |
getInputStream() |
SpdyFrame |
getRequest() |
SpdyFrame |
getResponse() |
boolean |
isFinished()
True if the channel both received and sent FIN frames.
|
void |
onCtlFrame(SpdyFrame frame)
Non-blocking - handles a syn stream package.
|
void |
onDataFrame(SpdyFrame inFrame)
Non-blocking, called when a data frame is received.
|
void |
onReset()
Called on GOAWAY or reset.
|
void |
run() |
void |
send() |
void |
send(String scheme,
String method) |
void |
send(String host,
String url,
String scheme,
String method) |
void |
sendDataFrame(byte[] data,
int start,
int length,
boolean close) |
public SpdyFrame reqFrame
public SpdyFrame resFrame
protected boolean finSent
protected boolean finRcvd
public SpdyStream(SpdyConnection spdy)
public void dump(PrintWriter out)
public void onDataFrame(SpdyFrame inFrame)
public void onCtlFrame(SpdyFrame frame)
public void onReset()
public boolean isFinished()
public SpdyFrame getDataFrame(long to) throws IOException
IOException
public SpdyFrame getFrame(long to)
public SpdyFrame getRequest()
public SpdyFrame getResponse()
public void sendDataFrame(byte[] data, int start, int length, boolean close)
public void send()
public InputStream getInputStream()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.