org.glassfish.grizzly.http
Class HttpResponsePacket.Builder
java.lang.Object
org.glassfish.grizzly.http.HttpHeader.Builder<HttpResponsePacket.Builder>
org.glassfish.grizzly.http.HttpResponsePacket.Builder
- Enclosing class:
- HttpResponsePacket
public static class HttpResponsePacket.Builder
- extends HttpHeader.Builder<HttpResponsePacket.Builder>
HttpResponsePacket message builder.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpResponsePacket.Builder
protected HttpResponsePacket.Builder(HttpRequestPacket request)
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.