org.glassfish.grizzly.http
Class HttpTrailer.Builder
java.lang.Object
org.glassfish.grizzly.http.HttpContent.Builder<HttpTrailer.Builder>
org.glassfish.grizzly.http.HttpTrailer.Builder
- Enclosing class:
- HttpTrailer
public static final class HttpTrailer.Builder
- extends HttpContent.Builder<HttpTrailer.Builder>
HttpTrailer message builder.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpTrailer.Builder
protected HttpTrailer.Builder(HttpHeader httpHeader)
headers
public final HttpTrailer.Builder headers(MimeHeaders mimeHeaders)
- Set the mime headers.
- Parameters:
mimeHeaders - MimeHeaders.
header
public final HttpTrailer.Builder header(String name,
String value)
- Add the HTTP mime header.
- Parameters:
name - the mime header name.value - the mime header value.
build
public final HttpTrailer build()
- Build the HttpTrailer message.
- Overrides:
build in class HttpContent.Builder<HttpTrailer.Builder>
- Returns:
- HttpTrailer
Copyright © 2011 Oracle Corpration. All Rights Reserved.