Class XslErrorMessageFormatter

java.lang.Object
org.frankframework.errormessageformatters.ErrorMessageFormatter
org.frankframework.errormessageformatters.XslErrorMessageFormatter
All Implemented Interfaces:
IErrorMessageFormatter, IScopeProvider

public class XslErrorMessageFormatter extends ErrorMessageFormatter
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 Details

  • Constructor Details

    • XslErrorMessageFormatter

      public XslErrorMessageFormatter()
  • Method Details

    • format

      public Message format(String errorMessage, Throwable t, HasName 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 interface IErrorMessageFormatter
      Overrides:
      format in class ErrorMessageFormatter
    • addParameter

      public void addParameter(IParameter p)
    • getParameterList

      @Nonnull public ParameterList getParameterList()
    • setStyleSheet

      public void setStyleSheet(String newStyleSheet)
      URL to the stylesheet used to transform the output of the standard ErrorMessageFormatter
    • setXpathExpression

      public void setXpathExpression(String string)
      xPathExpression to use for transformation
    • getStyleSheet

      public String getStyleSheet()
    • getXpathExpression

      public String getXpathExpression()