org.glassfish.grizzly.http
Class HttpBrokenContent.Builder

java.lang.Object
  extended by org.glassfish.grizzly.http.HttpContent.Builder<HttpBrokenContent.Builder>
      extended by org.glassfish.grizzly.http.HttpBrokenContent.Builder
Enclosing class:
HttpBrokenContent

public static final class HttpBrokenContent.Builder
extends HttpContent.Builder<HttpBrokenContent.Builder>

HttpTrailer message builder.


Field Summary
 
Fields inherited from class org.glassfish.grizzly.http.HttpContent.Builder
packet
 
Constructor Summary
protected HttpBrokenContent.Builder(HttpHeader httpHeader)
           
 
Method Summary
 HttpContent build()
          Build the HttpTrailer message.
 HttpBrokenContent.Builder error(HttpBrokenContentException exception)
          Set the exception.
 HttpBrokenContent.Builder error(String message)
          Set the exception.
 HttpBrokenContent.Builder error(String message, Throwable cause)
          Set the exception.
 HttpBrokenContent.Builder error(Throwable cause)
          Set the exception.
 
Methods inherited from class org.glassfish.grizzly.http.HttpContent.Builder
content, last
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpBrokenContent.Builder

protected HttpBrokenContent.Builder(HttpHeader httpHeader)
Method Detail

error

public final HttpBrokenContent.Builder error(HttpBrokenContentException exception)
Set the exception.

Parameters:
exception - HttpBrokenContentException.

error

public final HttpBrokenContent.Builder error(Throwable cause)
Set the exception.

Parameters:
cause - error description.

error

public final HttpBrokenContent.Builder error(String message)
Set the exception.

Parameters:
message - error description.

error

public final HttpBrokenContent.Builder error(String message,
                                             Throwable cause)
Set the exception.

Parameters:
error - error description.

build

public final HttpContent build()
Build the HttpTrailer message.

Overrides:
build in class HttpContent.Builder<HttpBrokenContent.Builder>
Returns:
HttpTrailer


Copyright © 2012 Oracle Corporation. All Rights Reserved.