Top Description Fields Constructors Methods
io.undertow.util

public Class ClosingChannelExceptionHandler<T extends Channel>

extends Object
implements ChannelExceptionHandler<T extends Channel>
Class Inheritance
All Implemented Interfaces
org.xnio.ChannelExceptionHandler, java.util.EventListener
Imports
java.io.Closeable, .IOException, java.nio.channels.Channel, org.xnio.ChannelExceptionHandler, .IoUtils, io.undertow.UndertowLogger

Channel exception handler that closes the channel, logs a debug level message and closes arbitrary other resources.
Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final Closeable[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
handleException(T
the channel
t
,
IOException
the exception
e
)

Implements org.xnio.ChannelExceptionHandler.handleException.

Handle an exception on the channel.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

closableback to summary
private final Closeable[] closable

Constructor Detail

ClosingChannelExceptionHandlerback to summary
public ClosingChannelExceptionHandler(Closeable... closable)

Method Detail

handleExceptionback to summary
public void handleException(T t, IOException e)

Implements org.xnio.ChannelExceptionHandler.handleException.

Doc from org.xnio.ChannelExceptionHandler.handleException.

Handle an exception on the channel.

Parameters
t:T

the channel

e:IOException

the exception

Annotations
@Override