Top Description Fields Methods
io.undertow.server

public Interface DefaultResponseListener

Imports
io.undertow.util.AttachmentKey

Listener interface for default response handlers. These are handlers that generate default content such as error pages.
Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
public static final AttachmentKey<Throwable>
EXCEPTION

If the default response listener was invoked as a result of an exception being thrown then the exception will be available under this attachment key.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if this listener is generating a default response.
handleDefaultResponse
(final HttpServerExchange
The exchange
exchange
)

Field Detail

EXCEPTIONback to summary
public static final AttachmentKey<Throwable> EXCEPTION

If the default response listener was invoked as a result of an exception being thrown then the exception will be available under this attachment key.

Method Detail

handleDefaultResponseback to summary
public boolean handleDefaultResponse(final HttpServerExchange exchange)
Parameters
exchange:HttpServerExchange

The exchange

Returns:boolean

true if this listener is generating a default response.