Package org.glassfish.grizzly.spdy
Class SpdySession.UnidirectionalBuilder
java.lang.Object
org.glassfish.grizzly.http.HttpHeader.Builder<SpdySession.UnidirectionalBuilder>
org.glassfish.grizzly.spdy.SpdySession.UnidirectionalBuilder
- Enclosing class:
- SpdySession
public final class SpdySession.UnidirectionalBuilder
extends org.glassfish.grizzly.http.HttpHeader.Builder<SpdySession.UnidirectionalBuilder>
-
Field Summary
Fields inherited from class org.glassfish.grizzly.http.HttpHeader.Builder
chunked, contentLength, contentType, mimeHeaders, protocol, protocolString, upgrade -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassociatedToStreamId(int associatedToStreamId) Set theassociatedToStreamIdparameter of aSpdyStream.org.glassfish.grizzly.spdy.SpdyRequestbuild()protected org.glassfish.grizzly.http.HttpHeadercreate()fin(boolean fin) Sets thefinflag of aSpdyStream.final SpdyStreamopen()Build the HttpRequestPacket message.priority(int priority) Set thepriorityparameter of aSpdyStream.Set thequeryportion of the request URI.slot(int slot) Set theslotparameter of aSpdyStream.Set the request URI.Methods inherited from class org.glassfish.grizzly.http.HttpHeader.Builder
chunked, contentLength, contentType, header, header, maxNumHeaders, protocol, protocol, removeHeader, removeHeader, reset, upgrade
-
Constructor Details
-
UnidirectionalBuilder
public UnidirectionalBuilder()
-
-
Method Details
-
uri
Set the request URI.- Parameters:
uri- the request URI.
-
query
Set thequeryportion of the request URI.- Parameters:
query- the query String- Returns:
- the current
Builder
-
associatedToStreamId
Set theassociatedToStreamIdparameter of aSpdyStream.- Parameters:
associatedToStreamId- the associatedToStreamId- Returns:
- the current
Builder
-
priority
Set thepriorityparameter of aSpdyStream.- Parameters:
priority- the priority- Returns:
- the current
Builder
-
slot
Set theslotparameter of aSpdyStream.- Parameters:
slot- the slot- Returns:
- the current
Builder
-
fin
Sets thefinflag of aSpdyStream.- Parameters:
fin-- Returns:
- the current
Builder
-
open
Build the HttpRequestPacket message.- Returns:
- HttpRequestPacket
- Throws:
SpdyStreamException
-
build
public org.glassfish.grizzly.spdy.SpdyRequest build()- Overrides:
buildin classorg.glassfish.grizzly.http.HttpHeader.Builder<SpdySession.UnidirectionalBuilder>
-
create
protected org.glassfish.grizzly.http.HttpHeader create()- Specified by:
createin classorg.glassfish.grizzly.http.HttpHeader.Builder<SpdySession.UnidirectionalBuilder>
-