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(java.lang.String method)
Set the HTTP request method.
|
HttpRequestPacket.Builder |
query(java.lang.String query)
Set the
query portion of the request URI. |
HttpRequestPacket.Builder |
uri(java.lang.String uri)
Set the request URI.
|
chunked, contentLength, contentType, header, header, protocol, protocol, upgradepublic HttpRequestPacket.Builder method(Method method)
method - the HTTP request method..public HttpRequestPacket.Builder method(java.lang.String method)
method - the HTTP request method. Format is "GET|POST...".public HttpRequestPacket.Builder uri(java.lang.String uri)
uri - the request URI.public HttpRequestPacket.Builder query(java.lang.String query)
query portion of the request URI.query - the query StringBuilderpublic final HttpRequestPacket build()
Copyright © 2014 Oracle Corporation. All Rights Reserved.