public interface ResponseListener
Modifier and Type | Method and Description |
---|---|
void |
onError(long id,
Throwable ex)
Called when exception is thrown during dispatching and not mapped via ExceptionMapper.
|
void |
onMappedException(long id,
Throwable exception,
javax.ws.rs.ext.ExceptionMapper mapper)
Called when Jersey has finalized response and handles it back to container.
|
void |
onResponse(long id,
ContainerResponse response)
Called when Jersey has finalized response and handles it back to container.
|
void onError(long id, Throwable ex)
id
- Context ID.ex
- thrown exception.void onResponse(long id, ContainerResponse response)
id
- Context ID.response
- response instance. It MUST NOT be modified.void onMappedException(long id, Throwable exception, javax.ws.rs.ext.ExceptionMapper mapper)
id
- Context ID.exception
- thrown exception.mapper
- ExceptionMapper
used for processing that particular exception.Copyright © 2013 Oracle Corporation. All rights reserved.