Top Description Inners Fields Constructors Methods
org.glassfish.grizzly.http

public Class HttpBrokenContent

extends HttpContent
Class Inheritance
Imports
org.glassfish.grizzly.Buffer, .ThreadCache

HttpContent message, which represents broken HTTP content. isLast() is always returns true, getContent() always throws HttpBrokenContentException().
Author
Alexey Stashok
See Also
HttpContent#isBroken(org.glassfish.grizzly.http.HttpContent)

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
HttpBrokenContent.Builder

HttpTrailer message builder.

Field Summary

Modifier and TypeField and Description
private static final ThreadCache.CachedTypeIndex<HttpBrokenContent>
private Throwable
Inherited from org.glassfish.grizzly.http.HttpContent:
contenthttpHeaderisLast

Constructor Summary

AccessConstructor and Description
protected
HttpBrokenContent(final HttpHeader httpHeader)

Method Summary

Modifier and TypeMethod and Description
public static HttpBrokenContent.Builder

Returns:

Builder.
builder
(final HttpHeader httpHeader)

Hides org.glassfish.grizzly.http.HttpContent.builder.

Returns HttpTrailer builder.

public static HttpBrokenContent
public static HttpBrokenContent
public Buffer
getContent()

Overrides org.glassfish.grizzly.http.HttpContent.getContent.

Get the HTTP message content Buffer.

public Throwable

Returns:

Throwable, which describes the error.
getException
()

Returns Throwable, which describes the error.

public final boolean

Returns:

Always true true for the trailer message.
isLast
()

Overrides org.glassfish.grizzly.http.HttpContent.isLast.

Always true true for the trailer message.

public void
protected void
reset()

Overrides org.glassfish.grizzly.http.HttpContent.reset.

Reset the internal state.

Inherited from org.glassfish.grizzly.http.HttpContent:
appendcreatecreategetHttpHeaderisBrokenisContentisHeadersetContentsetLast

Field Detail

CACHE_IDXback to summary
private static final ThreadCache.CachedTypeIndex<HttpBrokenContent> CACHE_IDX

Hides org.glassfish.grizzly.http.HttpContent.CACHE_IDX.

exceptionback to summary
private Throwable exception

Constructor Detail

HttpBrokenContentback to summary
protected HttpBrokenContent(final HttpHeader httpHeader)

Method Detail

builderback to summary
public static HttpBrokenContent.Builder builder(final HttpHeader httpHeader)

Hides org.glassfish.grizzly.http.HttpContent.builder.

Returns HttpTrailer builder.

Returns:HttpBrokenContent.Builder

Builder.

createback to summary
public static HttpBrokenContent create()

Hides org.glassfish.grizzly.http.HttpContent.create.

createback to summary
public static HttpBrokenContent create(final HttpHeader httpHeader)

Hides org.glassfish.grizzly.http.HttpContent.create.

getContentback to summary
public Buffer getContent()

Overrides org.glassfish.grizzly.http.HttpContent.getContent.

Doc from org.glassfish.grizzly.http.HttpContent.getContent.

Get the HTTP message content Buffer.

Annotations
@Override
getExceptionback to summary
public Throwable getException()

Returns Throwable, which describes the error.

Returns:Throwable

Throwable, which describes the error.

isLastback to summary
public final boolean isLast()

Overrides org.glassfish.grizzly.http.HttpContent.isLast.

Always true true for the trailer message.

Returns:boolean

Always true true for the trailer message.

Annotations
@Override
recycleback to summary
public void recycle()

Overrides org.glassfish.grizzly.http.HttpContent.recycle.

Implements org.glassfish.grizzly.Cacheable.recycle.

Annotations
@Override
resetback to summary
protected void reset()

Overrides org.glassfish.grizzly.http.HttpContent.reset.

Doc from org.glassfish.grizzly.http.HttpContent.reset.

Reset the internal state.

Annotations
@Override
org.glassfish.grizzly.http back to summary

public final Class HttpBrokenContent.Builder

extends HttpContent.Builder<HttpBrokenContent.Builder>
Class Inheritance

HttpTrailer message builder.

Field Summary

Modifier and TypeField and Description
private Throwable
Inherited from org.glassfish.grizzly.http.HttpContent.Builder:
contenthttpHeaderlast

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public HttpBrokenContent

Returns:

HttpTrailer
build
()

Overrides org.glassfish.grizzly.http.HttpContent.Builder.build.

Build the HttpTrailer message.

protected HttpContent
public HttpBrokenContent.Builder
error(final Throwable cause)

Set the exception.

Inherited from org.glassfish.grizzly.http.HttpContent.Builder:
contenthttpHeaderlastreset

Field Detail

causeback to summary
private Throwable cause

Constructor Detail

Builderback to summary
protected Builder()

Method Detail

buildback to summary
public HttpBrokenContent build()

Overrides org.glassfish.grizzly.http.HttpContent.Builder.build.

Build the HttpTrailer message.

Returns:HttpBrokenContent

HttpTrailer

Annotations
@Override
createback to summary
protected HttpContent create()

Overrides org.glassfish.grizzly.http.HttpContent.Builder.create.

Annotations
@Override
errorback to summary
public HttpBrokenContent.Builder error(final Throwable cause)

Set the exception.

Parameters
cause:Throwable

Throwable.