Interface HandlerConfiguration
- All Superinterfaces:
HandlerContainingConfigurable, NamedConfigurable, ObjectConfigurable, PropertyConfigurable
- All Known Implementing Classes:
HandlerConfigurationImpl
public interface HandlerConfiguration
extends HandlerContainingConfigurable, NamedConfigurable, PropertyConfigurable, ObjectConfigurable
Configuration for a single handler.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the encoding which may be an expression.Returns the error manager name which may be an expression.Returns a filter that may be an expression.Get the name of the configured formatter for this handler.Gets the formatter name which may be an expression.getLevel()Gets the level set on the handler.Returns the level that may be an expression.voidsetEncoding(String name) voidsetEncoding(String expression, String value) Sets the expression value for the encoding.voidsetErrorManagerName(String name) voidsetErrorManagerName(String expression, String value) Sets the expression value for the error manager name.voidvoidSets the expression value and for the filter.voidsetFormatterName(String name) Set the name of the configured formatter for this handler.voidsetFormatterName(String expression, String value) Sets the expression value for the formatter name.voidSets the level on the handler.voidSets the expression value for the level.Methods inherited from interface HandlerContainingConfigurable
addHandlerName, getHandlerNames, removeHandlerName, setHandlerNames, setHandlerNamesMethods inherited from interface NamedConfigurable
getNameMethods inherited from interface ObjectConfigurable
getClassName, getModuleNameMethods inherited from interface PropertyConfigurable
addPostConfigurationMethod, getConstructorProperties, getPostConfigurationMethods, getPropertyNames, getPropertyValueExpression, getPropertyValueString, hasConstructorProperty, hasProperty, removePostConfigurationMethod, removeProperty, setPostConfigurationMethods, setPostConfigurationMethods, setPropertyValueExpression, setPropertyValueExpression, setPropertyValueString
-
Method Details
-
getFormatterName
String getFormatterName()Get the name of the configured formatter for this handler.- Returns:
- the formatter name
-
getFormatterNameValueExpression
ValueExpression<String> getFormatterNameValueExpression()Gets the formatter name which may be an expression.- Returns:
- the formatter name
-
setFormatterName
Set the name of the configured formatter for this handler.- Parameters:
name- the formatter name
-
setFormatterName
Sets the expression value for the formatter name. This method will not parse the expression for the value and instead use thelevelparameter for the formatter name on the handler.- Parameters:
expression- the expression used to resolve the levelvalue- the value to set the formatter name to- See Also:
-
getLevel
-
getLevelValueExpression
ValueExpression<String> getLevelValueExpression()Returns the level that may be an expression.- Returns:
- the level
-
setLevel
Sets the level on the handler.- Parameters:
level- the level to set, may be an expression- See Also:
-
setLevel
Sets the expression value for the level. This method will not parse the expression for the value and instead use thelevelparameter for the level on the handler.- Parameters:
expression- the expression used to resolve the levellevel- the level to use- See Also:
-
getFilter
String getFilter() -
getFilterValueExpression
ValueExpression<String> getFilterValueExpression()Returns a filter that may be an expression.- Returns:
- the filter
-
setFilter
-
setFilter
-
getEncoding
String getEncoding() -
getEncodingValueExpression
ValueExpression<String> getEncodingValueExpression()Returns the encoding which may be an expression.- Returns:
- the encoding
-
setEncoding
-
setEncoding
Sets the expression value for the encoding. This method will not parse the expression for the value and instead use thevalueparameter for the encoding on the handler.- Parameters:
expression- the expressionvalue- the value to set the encoding to- See Also:
-
getErrorManagerName
String getErrorManagerName() -
getErrorManagerNameValueExpression
ValueExpression<String> getErrorManagerNameValueExpression()Returns the error manager name which may be an expression.- Returns:
- the error manager name
-
setErrorManagerName
-
setErrorManagerName
Sets the expression value for the error manager name. This method will not parse the expression for the value and instead use thevalueparameter for the error manager name on the handler.- Parameters:
expression- the expressionvalue- the value to set the error manager name to- See Also:
-