public class SpdyStream extends Object implements AttributeStorage, OutputSink, Closeable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SpdyStream.Termination |
protected static class |
SpdyStream.TerminationType |
| Modifier and Type | Field and Description |
|---|---|
static String |
SPDY_STREAM_ATTRIBUTE |
| Modifier and Type | Method and Description |
|---|---|
void |
addCloseListener(CloseListener closeListener) |
PushResource |
addPushResource(String url,
PushResource pushResource) |
boolean |
canWrite() |
boolean |
canWrite(int length) |
GrizzlyFuture<Closeable> |
close() |
void |
close(CompletionHandler<Closeable> completionHandler) |
int |
getAssociatedToStreamId() |
AttributeHolder |
getAttributes() |
int |
getLocalWindowSize() |
int |
getPeerWindowSize() |
int |
getPriority() |
int |
getSlot() |
HttpRequestPacket |
getSpdyRequest() |
HttpResponsePacket |
getSpdyResponse() |
static SpdyStream |
getSpdyStream(HttpHeader httpHeader) |
int |
getStreamId() |
boolean |
isClosed() |
boolean |
isLocallyInitiatedStream() |
boolean |
isUnidirectional() |
void |
notifyCanWrite(WriteHandler writeHandler) |
void |
notifyCanWrite(WriteHandler handler,
int length) |
boolean |
removeCloseListener(CloseListener closeListener) |
PushResource |
removePushResource(String url) |
public static final String SPDY_STREAM_ATTRIBUTE
public static SpdyStream getSpdyStream(HttpHeader httpHeader)
public int getPeerWindowSize()
public int getLocalWindowSize()
public HttpRequestPacket getSpdyRequest()
public HttpResponsePacket getSpdyResponse()
public PushResource addPushResource(String url, PushResource pushResource)
public PushResource removePushResource(String url)
public int getStreamId()
public int getAssociatedToStreamId()
public int getPriority()
public int getSlot()
public boolean isUnidirectional()
public boolean isLocallyInitiatedStream()
public boolean isClosed()
public AttributeHolder getAttributes()
getAttributes in interface AttributeStoragepublic void notifyCanWrite(WriteHandler handler, int length)
notifyCanWrite in interface OutputSinkpublic boolean canWrite(int length)
canWrite in interface OutputSinkpublic boolean canWrite()
canWrite in interface OutputSinkpublic void notifyCanWrite(WriteHandler writeHandler)
notifyCanWrite in interface OutputSinkpublic GrizzlyFuture<Closeable> close()
public void close(CompletionHandler<Closeable> completionHandler)
public void addCloseListener(CloseListener closeListener)
addCloseListener in interface Closeablepublic boolean removeCloseListener(CloseListener closeListener)
removeCloseListener in interface CloseableCopyright © 2013 Oracle Corporation. All Rights Reserved.