Package church.i18n.processing.config
Interface ProcessingExceptionConfig
- All Known Implementing Classes:
DefaultProcessingExceptionConfig
public interface ProcessingExceptionConfig
Configuration of default behavior of library with
-
Method Summary
Modifier and TypeMethodDescription@NotNull MessageTypeSpecifies a default message type when noMessageTypeis specified within message.@NotNull SecurityPolicySpecifies what defaultSecurityPolicyto use, when none is specified within message.@NotNull Set<SecurityPolicy> Allowed/Safe to useSecurityPolicyin the application.@NotNull ProcessingMessageA failover processing message that is used when there is not enough information provided and the system has to return a message.@NotNull Set<SecurityPolicy> Allowed/Safe to useSecurityPolicyin the application.
-
Method Details
-
defaultMessageType
Specifies a default message type when noMessageTypeis specified within message.- Returns:
- Default message type to use.
-
defaultSecurityPolicy
Specifies what defaultSecurityPolicyto use, when none is specified within message.- Returns:
- Default
SecurityPolicyto use.
-
exposeSecurityPolicies
Allowed/Safe to useSecurityPolicyin the application. All other should are considered as unsafe and so cleaned out before exposing.- Returns:
- A set of security levels that could be exposed.
-
failoverProcessingMessage
A failover processing message that is used when there is not enough information provided and the system has to return a message. This may happen when all information is sanitized or no other information is available.- Returns:
- A default message to use.
-
logSecurityPolicies
Allowed/Safe to useSecurityPolicyin the application. All other should are considered as unsafe and so cleaned out before logging.- Returns:
- A set of security levels that could be logged.
-