Package org.glassfish.grizzly.http
Class HttpContent.Builder<T extends HttpContent.Builder>
java.lang.Object
org.glassfish.grizzly.http.HttpContent.Builder<T>
- Direct Known Subclasses:
HttpBrokenContent.Builder,HttpTrailer.Builder
- Enclosing class:
- HttpContent
HttpContent message builder.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the HttpContent message.final TSet the HttpContent chunk contentBuffer.protected HttpContentcreate()final ThttpHeader(HttpHeader httpHeader) Set theHttpHeaderassociated with this content.final Tlast(boolean last) Set whether this HttpContent chunk is the last.voidreset()
-
Field Details
-
last
protected boolean last -
-
httpHeader
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
httpHeader
Set theHttpHeaderassociated with this content.- Parameters:
httpHeader- theHttpHeaderassociated with this content.- Returns:
- this.
-
last
Set whether this HttpContent chunk is the last.- Parameters:
last- is this HttpContent chunk last.- Returns:
- Builder
-
content
Set the HttpContent chunk contentBuffer.- Parameters:
content- the HttpContent chunk contentBuffer.- Returns:
- Builder
-
build
Build the HttpContent message.- Returns:
- HttpContent
-
reset
public void reset() -
create
-