- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
ErrorHandling.BuilderBase.ErrorHandlingImpl
Interface generated from definition. Please add javadoc to the definition interface.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forErrorHandling
.static class
ErrorHandling.BuilderBase<BUILDER extends ErrorHandling.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ErrorHandling> Fluent API builder base forErrorHandling
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorHandling.Builder
builder()
Create a new fluent API builder to customize configuration.static ErrorHandling.Builder
builder
(ErrorHandling instance) Create a new fluent API builder from an existing instance.static ErrorHandling
create()
Create a new instance with default values.static ErrorHandling
Create a new instance from configuration.boolean
Whether to include a response entity when mapping aRequestException
using aDirectHandler
.boolean
Whether to log all messages in aRequestException
or not.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
includeEntity
boolean includeEntity()Whether to include a response entity when mapping aRequestException
using aDirectHandler
. Response entities may include data that is reflected back from the original request, albeit escaped to prevent potential attacks.- Returns:
- include entity flag
-
logAllMessages
boolean logAllMessages()Whether to log all messages in aRequestException
or not. If set tofalse
, only those that returntrue
forRequestException.safeMessage()
are logged.
-