Top Description Fields Constructors Methods
org.glassfish.grizzly

public Class CloseReason

extends Object
Class Inheritance
Imports
java.io.IOException

An object, describing the reason why Connection was closed.
Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
private final IOException
private static final IOException
public static final CloseReason
private static final IOException
public static final CloseReason
private final CloseType
type

References Deprecated CloseType is deprecated or references (maybe indirectly) at least one deprecated element.

Constructor Summary

AccessConstructor and Description
public
CloseReason(final CloseType type, final IOException cause)
References Deprecated CloseType is deprecated or references (maybe indirectly) at least one deprecated element.

Method Summary

Modifier and TypeMethod and Description
public IOException

Returns:

information about an error, that caused the Connection to be closed
getCause
()

Returns information about an error, that caused the Connection to be closed.

public CloseType

Returns:

information whether Connection was closed locally or remotely
getType
()
References Deprecated CloseType is deprecated or references (maybe indirectly) at least one deprecated element.

Return information whether Connection was closed locally or remotely.

public String
toString()

Overrides java.lang.Object.toString.

Returns also type and cause.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

causeback to summary
private final IOException cause
LOCALLY_CLOSEDback to summary
private static final IOException LOCALLY_CLOSED
LOCALLY_CLOSED_REASONback to summary
public static final CloseReason LOCALLY_CLOSED_REASON
REMOTELY_CLOSEDback to summary
private static final IOException REMOTELY_CLOSED
REMOTELY_CLOSED_REASONback to summary
public static final CloseReason REMOTELY_CLOSED_REASON
typeback to summary
private final CloseType type

References Deprecated

CloseType is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Constructor Detail

CloseReasonback to summary
public CloseReason(final CloseType type, final IOException cause)

References Deprecated

CloseType is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Method Detail

getCauseback to summary
public IOException getCause()

Returns information about an error, that caused the Connection to be closed. If the cause wasn't specified by user and it was closed locally then LOCALLY_CLOSED will be returned. If the cause wasn't specified by user and it was closed remotely then REMOTELY_CLOSED will be returned.

Returns:IOException

information about an error, that caused the Connection to be closed

getTypeback to summary
public CloseType getType()

References Deprecated

CloseType is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Return information whether Connection was closed locally or remotely.

Returns:CloseType

information whether Connection was closed locally or remotely

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns also type and cause.

Annotations
@Override