public static class HttpRequestPacket.Builder extends HttpHeader.Builder<HttpRequestPacket.Builder>
packet
Modifier | Constructor and Description |
---|---|
protected |
HttpRequestPacket.Builder() |
Modifier and Type | Method and Description |
---|---|
HttpRequestPacket |
build()
Build the HttpRequestPacket message.
|
HttpRequestPacket.Builder |
method(Method method)
Set the HTTP request method.
|
HttpRequestPacket.Builder |
method(String method)
Set the HTTP request method.
|
HttpRequestPacket.Builder |
query(String query)
Set the
query portion of the request URI. |
HttpRequestPacket.Builder |
uri(String uri)
Set the request URI.
|
chunked, contentLength, contentType, header, header, maxNumHeaders, protocol, protocol, upgrade
public HttpRequestPacket.Builder method(Method method)
method
- the HTTP request method..public HttpRequestPacket.Builder method(String method)
method
- the HTTP request method. Format is "GET|POST...".public HttpRequestPacket.Builder uri(String uri)
uri
- the request URI.public HttpRequestPacket.Builder query(String query)
query
portion of the request URI.query
- the query StringBuilder
public final HttpRequestPacket build()
Copyright © 2013 Oracle Corporation. All Rights Reserved.