public interface ResponseListener
Modifier and Type | Method and Description |
---|---|
void |
onError(long id,
java.lang.Throwable ex)
Called when exception is thrown during dispatching and not mapped via ExceptionMapper.
|
void |
onMappedException(long id,
java.lang.Throwable exception,
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, java.lang.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, java.lang.Throwable exception, ExceptionMapper mapper)
id
- Context ID.exception
- thrown exception.mapper
- ExceptionMapper
used for processing that particular exception.Copyright © 2016 Oracle Corporation. All Rights Reserved.