org.glassfish.grizzly.http
Class HttpResponsePacket.Builder

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

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

HttpResponsePacket message builder.


Field Summary
 
Fields inherited from class org.glassfish.grizzly.http.HttpHeader.Builder
packet
 
Constructor Summary
protected HttpResponsePacket.Builder(HttpRequestPacket request)
           
 
Method Summary
 HttpResponsePacket build()
          Build the HttpResponsePacket message.
 HttpResponsePacket.Builder reasonPhrase(String reasonPhrase)
          Sets the status reason phrase for this response.
 HttpResponsePacket.Builder status(int status)
          Sets the status code for this response.
 
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

HttpResponsePacket.Builder

protected HttpResponsePacket.Builder(HttpRequestPacket request)
Method Detail

status

public HttpResponsePacket.Builder status(int status)
Sets the status code for this response.

Parameters:
status - the status code for this response.

reasonPhrase

public HttpResponsePacket.Builder reasonPhrase(String reasonPhrase)
Sets the status reason phrase for this response.

Parameters:
reasonPhrase - the status reason phrase for this response.

build

public final HttpResponsePacket build()
Build the HttpResponsePacket message.

Returns:
HttpResponsePacket


Copyright © 2012 Oracle Corporation. All Rights Reserved.