|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.http.HttpContent
org.glassfish.grizzly.http.HttpTrailer
public class HttpTrailer
HttpContent message, which represents HTTP trailer message.
Applicable only for chunked HTTP messages.
| Nested Class Summary | |
|---|---|
static class |
HttpTrailer.Builder
HttpTrailer message builder. |
| Field Summary |
|---|
| Fields inherited from class org.glassfish.grizzly.http.HttpContent |
|---|
content, httpHeader, isLast |
| Constructor Summary | |
|---|---|
protected |
HttpTrailer()
|
protected |
HttpTrailer(HttpHeader httpHeader)
|
| Method Summary | |
|---|---|
void |
addHeader(String name,
String value)
Add the HTTP mime header. |
static HttpTrailer.Builder |
builder(HttpHeader httpHeader)
Returns HttpTrailer builder. |
boolean |
containsHeader(String name)
Returns true, if the mime header with the specific name is present among the HttpHeader mime headers, or false otherwise. |
static HttpTrailer |
create()
|
static HttpTrailer |
create(HttpHeader httpHeader)
|
String |
getHeader(String name)
Get the value, of the specific HTTP mime header. |
MimeHeaders |
getHeaders()
Get all MimeHeaders, associated with the HttpHeader. |
boolean |
isLast()
Always true true for the trailer message. |
void |
recycle()
|
protected void |
reset()
Reset the internal state. |
void |
setHeader(String name,
String value)
Set the value, of the specific HTTP mime header. |
protected void |
setHeaders(MimeHeaders mimeHeaders)
Set the mime headers. |
| Methods inherited from class org.glassfish.grizzly.http.HttpContent |
|---|
append, getContent, getHttpHeader, isHeader, setContent, setLast |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected HttpTrailer()
protected HttpTrailer(HttpHeader httpHeader)
| Method Detail |
|---|
public static HttpTrailer create()
public static HttpTrailer create(HttpHeader httpHeader)
public static HttpTrailer.Builder builder(HttpHeader httpHeader)
HttpTrailer builder.
HttpTrailer.Builder.public final boolean isLast()
isLast in class HttpContentpublic MimeHeaders getHeaders()
MimeHeaders, associated with the HttpHeader.
getHeaders in interface MimeHeadersPacketMimeHeaders, associated with the HttpHeader.public String getHeader(String name)
getHeader in interface MimeHeadersPacketname - the mime header name.
public void setHeader(String name,
String value)
setHeader in interface MimeHeadersPacketname - the mime header name.value - the mime header value.
public void addHeader(String name,
String value)
addHeader in interface MimeHeadersPacketname - the mime header name.value - the mime header value.public boolean containsHeader(String name)
containsHeader in interface MimeHeadersPacketname - the mime header name.
protected void setHeaders(MimeHeaders mimeHeaders)
mimeHeaders - MimeHeaders.protected void reset()
reset in class HttpContentpublic void recycle()
recycle in interface Cacheablerecycle in class HttpContent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||