Module org.glassfish.grizzly.http
Package org.glassfish.grizzly.http
Class HttpRequestPacket.Builder
java.lang.Object
org.glassfish.grizzly.http.HttpHeader.Builder<HttpRequestPacket.Builder>
org.glassfish.grizzly.http.HttpRequestPacket.Builder
- Enclosing class:
- HttpRequestPacket
HttpRequestPacket message builder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Methodprotected Stringprotected Stringprotected StringFields inherited from class org.glassfish.grizzly.http.HttpHeader.Builder
chunked, contentLength, contentType, mimeHeaders, protocol, protocolString, upgrade -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal HttpRequestPacketbuild()Build the HttpRequestPacket message.protected HttpHeadercreate()Set the value for the Host header.Set the HTTP request method.Set the HTTP request method.Set thequeryportion of the request URI.voidreset()Set the request URI.Methods inherited from class org.glassfish.grizzly.http.HttpHeader.Builder
chunked, contentLength, contentType, header, header, maxNumHeaders, protocol, protocol, removeHeader, removeHeader, upgrade
-
Field Details
-
method
-
methodString
-
uri
-
queryString
-
host
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
method
Set the HTTP request method.- Parameters:
method- the HTTP request method..
-
method
Set the HTTP request method.- Parameters:
method- the HTTP request method. Format is "GET|POST...".
-
uri
Set the request URI.- Parameters:
uri- the request URI.
-
host
Set the value for the Host header.- Parameters:
host- the value for the Host header.- Returns:
- this.
-
query
Set thequeryportion of the request URI.- Parameters:
queryString- the query String- Returns:
- the current
Builder
-
build
Build the HttpRequestPacket message.- Overrides:
buildin classHttpHeader.Builder<HttpRequestPacket.Builder>- Returns:
- HttpRequestPacket
-
reset
public void reset()- Overrides:
resetin classHttpHeader.Builder<HttpRequestPacket.Builder>
-
create
- Specified by:
createin classHttpHeader.Builder<HttpRequestPacket.Builder>
-