Class FixedErrorMessageFormatter
- java.lang.Object
-
- nl.nn.adapterframework.errormessageformatters.ErrorMessageFormatter
-
- nl.nn.adapterframework.errormessageformatters.FixedErrorMessageFormatter
-
- All Implemented Interfaces:
IErrorMessageFormatter
,IScopeProvider
- Direct Known Subclasses:
FixedErrorMessage
public class FixedErrorMessageFormatter extends ErrorMessageFormatter
ErrorMessageFormatter that returns a fixed message with replacements.- Since:
- 4.3
- Author:
- Peter Leeuwenburgh
-
-
Field Summary
-
Fields inherited from class nl.nn.adapterframework.errormessageformatters.ErrorMessageFormatter
log
-
-
Constructor Summary
Constructors Constructor Description FixedErrorMessageFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Message
format(String errorMessage, Throwable t, INamedObject location, Message originalMessage, String messageId, long receivedTime)
Format the available parameters into a XML-message.String
getFilename()
String
getReplaceFrom()
String
getReplaceTo()
String
getReturnString()
String
getStyleSheetName()
void
setFilename(String filename)
name of the file containing the result messagevoid
setReplaceFrom(String replaceFrom)
void
setReplaceTo(String replaceTo)
void
setReturnString(String string)
returned messagevoid
setStyleSheetName(String styleSheetName)
-
Methods inherited from class nl.nn.adapterframework.errormessageformatters.ErrorMessageFormatter
getConfigurationClassLoader, getErrorMessage
-
-
-
-
Method Detail
-
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
-
setReturnString
public void setReturnString(String string)
returned message
-
setFilename
public void setFilename(String filename)
name of the file containing the result message
-
setReplaceFrom
public void setReplaceFrom(String replaceFrom)
-
setReplaceTo
public void setReplaceTo(String replaceTo)
-
setStyleSheetName
public void setStyleSheetName(String styleSheetName)
-
getFilename
public String getFilename()
-
getReturnString
public String getReturnString()
-
getReplaceFrom
public String getReplaceFrom()
-
getReplaceTo
public String getReplaceTo()
-
getStyleSheetName
public String getStyleSheetName()
-
-