Package org.glassfish.jersey.server
Class ServerRuntime.Responder
java.lang.Object
org.glassfish.jersey.server.ServerRuntime.Responder
- Enclosing class:
- ServerRuntime
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerRuntime.CompletionCallbackRunner
private final ServerRuntime.ConnectionCallbackRunner
private static final Logger
private final RequestProcessingContext
private final ServerRuntime
private final TracingLogger
-
Constructor Summary
ConstructorsConstructorDescriptionResponder
(RequestProcessingContext processingContext, ServerRuntime runtime) -
Method Summary
Modifier and TypeMethodDescriptionprivate ContainerResponse
convertResponse
(javax.ws.rs.core.Response exceptionResponse) private javax.ws.rs.core.Response
mapException
(Throwable originalThrowable) void
Processthrowable
by using exception mappers and generating the mapped response if possible.void
process
(ContainerResponse response) private ContainerResponse
processResponse
(ContainerResponse response) private boolean
processResponseError
(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)
-
Field Details
-
LOGGER
-
processingContext
-
runtime
-
completionCallbackRunner
-
connectionCallbackRunner
-
tracingLogger
-
-
Constructor Details
-
Responder
-
-
Method Details
-
process
-
processResponse
-
process
Processthrowable
by using exception mappers and generating the mapped response if possible.Note about logging:
- we do not log exceptions that are mapped by ExceptionMappers.
- All other exceptions are logged: WebApplicationExceptions with entities, exceptions that were unsuccessfully mapped
- Parameters:
throwable
- Exception to be processed.
-
processResponseError
If "jersey.config.server.exception.processResponseErrors" is set to true then try to handle errors raised during response processing.- Parameters:
responseError
- a throwable that occurred during response processing.- Returns:
true
if the given response error has been processed,false
otherwise.
-
convertResponse
-
mapException
- Throws:
Throwable
-
writeResponse
-
setWrittenResponse
-
release
-