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
Modifier and TypeFieldDescriptionprotected String
protected Method
protected String
protected String
protected String
Fields inherited from class org.glassfish.grizzly.http.HttpHeader.Builder
chunked, contentLength, contentType, mimeHeaders, protocol, protocolString, upgrade
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal HttpRequestPacket
build()
Build the HttpRequestPacket message.protected HttpHeader
create()
Set the value for the Host header.Set the HTTP request method.Set the HTTP request method.Set thequery
portion of the request URI.void
reset()
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 thequery
portion of the request URI.- Parameters:
queryString
- the query String- Returns:
- the current
Builder
-
build
Build the HttpRequestPacket message.- Overrides:
build
in classHttpHeader.Builder<HttpRequestPacket.Builder>
- Returns:
- HttpRequestPacket
-
reset
public void reset()- Overrides:
reset
in classHttpHeader.Builder<HttpRequestPacket.Builder>
-
create
- Specified by:
create
in classHttpHeader.Builder<HttpRequestPacket.Builder>
-