org.glassfish.grizzly.http
Class HttpRequestPacket.Builder

java.lang.Object
  extended by org.glassfish.grizzly.http.HttpHeader.Builder<HttpRequestPacket.Builder>
      extended by org.glassfish.grizzly.http.HttpRequestPacket.Builder
Enclosing class:
HttpRequestPacket

public static class HttpRequestPacket.Builder
extends HttpHeader.Builder<HttpRequestPacket.Builder>

HttpRequestPacket message builder.


Field Summary
 
Fields inherited from class org.glassfish.grizzly.http.HttpHeader.Builder
packet
 
Constructor Summary
protected HttpRequestPacket.Builder()
           
 
Method Summary
 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.
 
Methods inherited from class org.glassfish.grizzly.http.HttpHeader.Builder
chunked, contentLength, contentType, header, header, protocol, protocol, upgrade
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpRequestPacket.Builder

protected HttpRequestPacket.Builder()
Method Detail

method

public HttpRequestPacket.Builder method(Method method)
Set the HTTP request method.

Parameters:
method - the HTTP request method..

method

public HttpRequestPacket.Builder method(java.lang.String method)
Set the HTTP request method.

Parameters:
method - the HTTP request method. Format is "GET|POST...".

uri

public HttpRequestPacket.Builder uri(java.lang.String uri)
Set the request URI.

Parameters:
uri - the request URI.

query

public HttpRequestPacket.Builder query(java.lang.String query)
Set the query portion of the request URI.

Parameters:
query - the query String
Returns:
the current Builder

build

public final HttpRequestPacket build()
Build the HttpRequestPacket message.

Returns:
HttpRequestPacket


Copyright © 2011 Oracle Corpration. All Rights Reserved.