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.CompletionCallbackRunnerprivate final ServerRuntime.ConnectionCallbackRunnerprivate static final Loggerprivate final RequestProcessingContextprivate final ServerRuntimeprivate final TracingLogger -
Constructor Summary
ConstructorsConstructorDescriptionResponder(RequestProcessingContext processingContext, ServerRuntime runtime) -
Method Summary
Modifier and TypeMethodDescriptionprivate ContainerResponseconvertResponse(javax.ws.rs.core.Response exceptionResponse) private javax.ws.rs.core.ResponsemapException(Throwable originalThrowable) voidProcessthrowableby using exception mappers and generating the mapped response if possible.voidprocess(ContainerResponse response) private ContainerResponseprocessResponse(ContainerResponse response) private booleanprocessResponseError(Throwable responseError) If "jersey.config.server.exception.processResponseErrors" is set to true then try to handle errors raised during response processing.private voidrelease(ContainerResponse responseContext) private voidsetWrittenResponse(ContainerResponse response) private ContainerResponsewriteResponse(ContainerResponse response)
-
Field Details
-
LOGGER
-
processingContext
-
runtime
-
completionCallbackRunner
-
connectionCallbackRunner
-
tracingLogger
-
-
Constructor Details
-
Responder
-
-
Method Details
-
process
-
processResponse
-
process
Processthrowableby 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:
trueif the given response error has been processed,falseotherwise.
-
convertResponse
-
mapException
- Throws:
Throwable
-
writeResponse
-
setWrittenResponse
-
release
-