public final class HttpExceptionMapperServiceFilter extends Object implements StreamingHttpServiceFilterFactory
Exception subtypes into an HTTP response with an appropriate
HttpResponseStatus.
This filter is recommended to be placed as early as possible to make sure it captures all exceptions that may be generated by other filters.
| Modifier and Type | Field and Description |
|---|---|
static StreamingHttpServiceFilterFactory |
INSTANCE
Instance of
HttpExceptionMapperServiceFilter. |
| Modifier and Type | Method and Description |
|---|---|
StreamingHttpServiceFilter |
create(StreamingHttpService service)
Create a
StreamingHttpServiceFilter using the provided StreamingHttpService. |
HttpExecutionStrategy |
requiredOffloads() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultStreamingInfluencer, influenceStrategypublic static final StreamingHttpServiceFilterFactory INSTANCE
HttpExceptionMapperServiceFilter.public StreamingHttpServiceFilter create(StreamingHttpService service)
StreamingHttpServiceFilterFactoryStreamingHttpServiceFilter using the provided StreamingHttpService.create in interface StreamingHttpServiceFilterFactoryservice - StreamingHttpService to filterStreamingHttpServiceFilter using the provided StreamingHttpService.public HttpExecutionStrategy requiredOffloads()
HttpExecutionStrategyInfluencerThe provided default implementation requests offloading of all operations. Implementations that require no
offloading should be careful to return HttpExecutionStrategies.offloadNone() rather than
HttpExecutionStrategies.offloadNever().
requiredOffloads in interface HttpExecutionStrategyInfluencerrequiredOffloads in interface ExecutionStrategyInfluencer<HttpExecutionStrategy>