Package org.glassfish.grizzly.spdy
Class SpdySession.BidirectionalBuilder
java.lang.Object
org.glassfish.grizzly.http.HttpHeader.Builder<SpdySession.BidirectionalBuilder>
org.glassfish.grizzly.spdy.SpdySession.BidirectionalBuilder
- Enclosing class:
- SpdySession
public final class SpdySession.BidirectionalBuilder
extends org.glassfish.grizzly.http.HttpHeader.Builder<SpdySession.BidirectionalBuilder>
-
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 TypeMethodDescriptionorg.glassfish.grizzly.spdy.SpdyRequestbuild()protected org.glassfish.grizzly.http.HttpHeadercreate()fin(boolean fin) Sets thefinflag of aSpdyStream.Set the value of the Host header.Set the HTTP request method.method(org.glassfish.grizzly.http.Method method) Set the HTTP request method.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
-
BidirectionalBuilder
public BidirectionalBuilder()
-
-
Method Details
-
method
Set the HTTP request method.- Parameters:
method- the HTTP request method..
-
method
Set the HTTP request method.- Parameters:
methodString- the HTTP request method. Format is "GET|POST...".
-
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
-
host
Set the value of the Host header.- Parameters:
host- the value of the Host header.- Returns:
- this;
-
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.BidirectionalBuilder>
-
create
protected org.glassfish.grizzly.http.HttpHeader create()- Specified by:
createin classorg.glassfish.grizzly.http.HttpHeader.Builder<SpdySession.BidirectionalBuilder>
-