Top Inners Fields Constructors Methods
org.glassfish.grizzly.http2

public Class HeaderDecodingException

extends RuntimeException
Class Inheritance
Imports
org.glassfish.grizzly.http2.frames.ErrorCode

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum

Field Summary

Modifier and TypeField and Description
private final ErrorCode
private final HeaderDecodingException.ErrorType

Constructor Summary

AccessConstructor and Description
public
HeaderDecodingException(final ErrorCode errorCode, final HeaderDecodingException.ErrorType errorType)

Construct HeaderDecodingException.

public
HeaderDecodingException(final ErrorCode errorCode, final HeaderDecodingException.ErrorType errorType, final String
the detail message for this HeaderDecodingException
message
)

Construct HeaderDecodingException.

Method Summary

Modifier and TypeMethod and Description
public ErrorCode
getErrorCode()

Returns: the ErrorCode reason to be sent with a GOAWAY or RST frame.

public HeaderDecodingException.ErrorType
getErrorType()

Returns: the ErrorType to control the type of frame to be sent to the peer.

public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.

Field Detail

errorCodeback to summary
private final ErrorCode errorCode
errorTypeback to summary
private final HeaderDecodingException.ErrorType errorType

Constructor Detail

HeaderDecodingExceptionback to summary
public HeaderDecodingException(final ErrorCode errorCode, final HeaderDecodingException.ErrorType errorType)

Construct HeaderDecodingException.

Parameters
errorCode:ErrorCode

the ErrorCode for this HeaderDecodingException

HeaderDecodingExceptionback to summary
public HeaderDecodingException(final ErrorCode errorCode, final HeaderDecodingException.ErrorType errorType, final String message)

Construct HeaderDecodingException.

Parameters
errorCode:ErrorCode

the ErrorCode for this HeaderDecodingException

message:String

the detail message for this HeaderDecodingException

Method Detail

getErrorCodeback to summary
public ErrorCode getErrorCode()
Returns:ErrorCode

the ErrorCode reason to be sent with a GOAWAY or RST frame.

getErrorTypeback to summary
public HeaderDecodingException.ErrorType getErrorType()
Returns:HeaderDecodingException.ErrorType

the ErrorType to control the type of frame to be sent to the peer.

toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Doc from java.lang.Throwable.toString.

Returns a short description of this throwable. The result is the concatenation of:

  • the name of the class of this object
  • ": " (a colon and a space)
  • the result of invoking this object's getLocalizedMessage method
If getLocalizedMessage returns null, then just the class name is returned.
Annotations
@Override
org.glassfish.grizzly.http2 back to summary

pack-priv final Enum HeaderDecodingException.ErrorType

extends Enum<HeaderDecodingException.ErrorType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final HeaderDecodingException.ErrorType
public static final HeaderDecodingException.ErrorType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static HeaderDecodingException.ErrorType
public static HeaderDecodingException.ErrorType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

SESSIONback to summary
public static final HeaderDecodingException.ErrorType SESSION
STREAMback to summary
public static final HeaderDecodingException.ErrorType STREAM

Constructor Detail

ErrorTypeback to summary
private ErrorType()

Method Detail

valueOfback to summary
public static HeaderDecodingException.ErrorType valueOf(String name)
valuesback to summary
public static HeaderDecodingException.ErrorType[] values()