public interface CompletionCallback
A completion callback is invoked when the whole request processing is over, i.e. once a response for the request has been processed and sent back to the client or in when an unmapped exception or error is being propagated to the container.
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete()
A completion callback notification method that will be invoked when the request
processing is finished, after a response is processed and is sent back to the
client.
|
void |
onError(Throwable throwable)
Invoked in case an
exception mapper for an
exception or error thrown during request/response processing was not found and the
unmapped exception or error is being propagated to the hosting I/O container. |
void onComplete()
void onError(Throwable throwable)
exception mapper for an
exception or error thrown during request/response processing was not found and the
unmapped exception or error is being propagated to the hosting I/O container.
The throwable passed to the method is the actual unmapped exception thrown,
during the request/response processing, i.e. not wrapped into a container-specific
exception.
throwable - unmapped exception or error thrown during the request/response processing
that is being propagated to the hosting I/O container.Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.