Class XslErrorMessageFormatter
java.lang.Object
org.frankframework.errormessageformatters.ErrorMessageFormatter
org.frankframework.errormessageformatters.XslErrorMessageFormatter
- All Implemented Interfaces:
IErrorMessageFormatter
,IScopeProvider
Applies a XSLT-stylesheet to the standard error generated by an
ErrorMessageFormatter
.
If the transformation does not succeed, this 'standard' error message is returned and an exception is logged.
Hint: use xpathExression="/errorMessage/@message"
for a single compact string as errormessage.- Author:
- Johan Verrips IOS
-
Field Summary
Fields inherited from class org.frankframework.errormessageformatters.ErrorMessageFormatter
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
format
(String errorMessage, Throwable t, INamedObject location, Message originalMessage, String messageId, long receivedTime) Format the available parameters into a XML-message.void
setStyleSheet
(String newStyleSheet) URL to the stylesheet used to transform the output of the standardErrorMessageFormatter
void
setXpathExpression
(String string) xPathExpression to use for transformationMethods inherited from class org.frankframework.errormessageformatters.ErrorMessageFormatter
getConfigurationClassLoader, getErrorMessage
-
Field Details
-
paramList
-
-
Constructor Details
-
XslErrorMessageFormatter
public XslErrorMessageFormatter()
-
-
Method Details
-
format
public Message format(String errorMessage, Throwable t, INamedObject location, Message originalMessage, String messageId, long receivedTime) Description copied from class:ErrorMessageFormatter
Format the available parameters into a XML-message. Override this method in descender-classes to obtain the required behaviour.- Specified by:
format
in interfaceIErrorMessageFormatter
- Overrides:
format
in classErrorMessageFormatter
-
addParameter
-
getParameterList
-
setStyleSheet
URL to the stylesheet used to transform the output of the standardErrorMessageFormatter
-
setXpathExpression
xPathExpression to use for transformation -
getStyleSheet
-
getXpathExpression
-