public class SpdyStream extends Object implements org.glassfish.grizzly.attributes.AttributeStorage, org.glassfish.grizzly.OutputSink, org.glassfish.grizzly.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 | Constructor and Description |
|---|---|
protected |
SpdyStream(SpdySession spdySession,
org.glassfish.grizzly.http.HttpRequestPacket spdyRequest,
int streamId,
int associatedToStreamId,
int priority,
int slot,
boolean isUnidirectional) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCloseListener(org.glassfish.grizzly.CloseListener closeListener) |
PushResource |
addPushResource(String url,
PushResource pushResource) |
void |
assertOpen() |
boolean |
canWrite() |
boolean |
canWrite(int length)
Deprecated.
|
org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.Closeable> |
close() |
void |
close(org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.Closeable> completionHandler)
Deprecated.
please use
close() with the following GrizzlyFuture.addCompletionHandler(org.glassfish.grizzly.CompletionHandler) call |
org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.CloseReason> |
closeFuture() |
void |
closeSilently() |
void |
closeWithReason(IOException cause) |
int |
getAssociatedToStreamId() |
org.glassfish.grizzly.attributes.AttributeHolder |
getAttributes() |
int |
getLocalWindowSize() |
int |
getPeerWindowSize() |
int |
getPriority() |
int |
getSlot() |
org.glassfish.grizzly.http.HttpRequestPacket |
getSpdyRequest() |
org.glassfish.grizzly.http.HttpResponsePacket |
getSpdyResponse() |
static SpdyStream |
getSpdyStream(org.glassfish.grizzly.http.HttpHeader httpHeader) |
int |
getStreamId() |
int |
getUnflushedWritesCount() |
boolean |
isLocallyInitiatedStream() |
boolean |
isOpen() |
boolean |
isUnidirectional() |
void |
notifyCanWrite(org.glassfish.grizzly.WriteHandler writeHandler) |
void |
notifyCanWrite(org.glassfish.grizzly.WriteHandler handler,
int length)
Deprecated.
|
boolean |
removeCloseListener(org.glassfish.grizzly.CloseListener closeListener) |
PushResource |
removePushResource(String url) |
org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.Closeable> |
terminate() |
void |
terminateSilently() |
void |
terminateWithReason(IOException cause) |
public static final String SPDY_STREAM_ATTRIBUTE
protected SpdyStream(SpdySession spdySession, org.glassfish.grizzly.http.HttpRequestPacket spdyRequest, int streamId, int associatedToStreamId, int priority, int slot, boolean isUnidirectional)
public static SpdyStream getSpdyStream(org.glassfish.grizzly.http.HttpHeader httpHeader)
public int getPeerWindowSize()
public int getLocalWindowSize()
public int getUnflushedWritesCount()
public org.glassfish.grizzly.http.HttpRequestPacket getSpdyRequest()
public org.glassfish.grizzly.http.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 isOpen()
isOpen in interface org.glassfish.grizzly.Closeablepublic void assertOpen()
throws IOException
assertOpen in interface org.glassfish.grizzly.CloseableIOExceptionpublic org.glassfish.grizzly.attributes.AttributeHolder getAttributes()
getAttributes in interface org.glassfish.grizzly.attributes.AttributeStorage@Deprecated public boolean canWrite(int length)
canWrite in interface org.glassfish.grizzly.OutputSinkpublic boolean canWrite()
canWrite in interface org.glassfish.grizzly.OutputSink@Deprecated public void notifyCanWrite(org.glassfish.grizzly.WriteHandler handler, int length)
notifyCanWrite in interface org.glassfish.grizzly.OutputSinkpublic void notifyCanWrite(org.glassfish.grizzly.WriteHandler writeHandler)
notifyCanWrite in interface org.glassfish.grizzly.OutputSinkpublic org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.Closeable> terminate()
terminate in interface org.glassfish.grizzly.Closeablepublic void terminateSilently()
terminateSilently in interface org.glassfish.grizzly.Closeablepublic void terminateWithReason(IOException cause)
terminateWithReason in interface org.glassfish.grizzly.Closeablepublic org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.Closeable> close()
close in interface org.glassfish.grizzly.Closeablepublic void closeSilently()
closeSilently in interface org.glassfish.grizzly.Closeablepublic void close(org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.Closeable> completionHandler)
close() with the following GrizzlyFuture.addCompletionHandler(org.glassfish.grizzly.CompletionHandler) callclose in interface org.glassfish.grizzly.Closeablepublic void closeWithReason(IOException cause)
closeWithReason in interface org.glassfish.grizzly.Closeablepublic void addCloseListener(org.glassfish.grizzly.CloseListener closeListener)
addCloseListener in interface org.glassfish.grizzly.Closeablepublic boolean removeCloseListener(org.glassfish.grizzly.CloseListener closeListener)
removeCloseListener in interface org.glassfish.grizzly.Closeablepublic org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.CloseReason> closeFuture()
closeFuture in interface org.glassfish.grizzly.CloseableCopyright © 2020 Oracle Corporation. All Rights Reserved.