private static class ServerRuntime.Responder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ServerRuntime.CompletionCallbackRunner |
completionCallbackRunner |
private ServerRuntime.ConnectionCallbackRunner |
connectionCallbackRunner |
private static java.util.logging.Logger |
LOGGER |
private RequestProcessingContext |
processingContext |
private ServerRuntime |
runtime |
private TracingLogger |
tracingLogger |
Constructor and Description |
---|
Responder(RequestProcessingContext processingContext,
ServerRuntime runtime) |
Modifier and Type | Method and Description |
---|---|
private ContainerResponse |
convertResponse(javax.ws.rs.core.Response exceptionResponse) |
private javax.ws.rs.core.Response |
mapException(java.lang.Throwable originalThrowable) |
void |
process(ContainerResponse response) |
void |
process(java.lang.Throwable throwable)
Process
throwable by using exception mappers and generating the mapped
response if possible. |
private ContainerResponse |
processResponse(ContainerResponse response) |
private boolean |
processResponseError(java.lang.Throwable responseError)
If "jersey.config.server.exception.processResponseErrors" is set to true then try to
handle errors raised during response processing.
|
private void |
release(ContainerResponse responseContext) |
private void |
setWrittenResponse(ContainerResponse response) |
private ContainerResponse |
writeResponse(ContainerResponse response) |
private static final java.util.logging.Logger LOGGER
private final RequestProcessingContext processingContext
private final ServerRuntime runtime
private final ServerRuntime.CompletionCallbackRunner completionCallbackRunner
private final ServerRuntime.ConnectionCallbackRunner connectionCallbackRunner
private final TracingLogger tracingLogger
public Responder(RequestProcessingContext processingContext, ServerRuntime runtime)
public void process(ContainerResponse response)
private ContainerResponse processResponse(ContainerResponse response)
public void process(java.lang.Throwable throwable)
throwable
by using exception mappers and generating the mapped
response if possible.
Note about logging:
throwable
- Exception to be processed.private boolean processResponseError(java.lang.Throwable responseError)
responseError
- a throwable that occurred during response processing.true
if the given response error has been processed, false
otherwise.private ContainerResponse convertResponse(javax.ws.rs.core.Response exceptionResponse)
private javax.ws.rs.core.Response mapException(java.lang.Throwable originalThrowable) throws java.lang.Throwable
java.lang.Throwable
private ContainerResponse writeResponse(ContainerResponse response)
private void setWrittenResponse(ContainerResponse response)
private void release(ContainerResponse responseContext)