public final class HttpExceptionMapperServiceFilter extends Object implements StreamingHttpServiceFilterFactory, HttpExecutionStrategyInfluencer
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 |
influenceStrategy(HttpExecutionStrategy strategy)
Optionally modify the passed
HttpExecutionStrategy to a new HttpExecutionStrategy that suits
this HttpExecutionStrategyInfluencer. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappenddefaultStreamingInfluencerpublic 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 influenceStrategy(HttpExecutionStrategy strategy)
HttpExecutionStrategyInfluencerHttpExecutionStrategy to a new HttpExecutionStrategy that suits
this HttpExecutionStrategyInfluencer.influenceStrategy in interface HttpExecutionStrategyInfluencerstrategy - HttpExecutionStrategy to influence.HttpExecutionStrategy that suits this HttpExecutionStrategyInfluencer