Package eu.europa.ec.taxud.instantiation
Class StatusMessageHandler
java.lang.Object
eu.europa.ec.taxud.handler.AbstractHandler
eu.europa.ec.taxud.instantiation.StatusMessageHandler
StatusMessageHandler handles the generation of the Status Message- Version:
- $Revision$
-
Field Summary
Fields inherited from class eu.europa.ec.taxud.handler.AbstractHandler
config -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends ValidationHandler> Gives the related validation handler of the status message handler.abstract booleaninitContext(ValidationContext context, StatusMessageRequest statusMessageRequest) Initialise the ValidationContext based on the statusMessageRequest object sent by the EVM interface.abstract booleanisApplicable(ValidationContext context) Checks if handler is applicable for ValidationContext.abstract Stringprocess(ValidationContext context) Generate a status message based on ValidationContext information.Methods inherited from class eu.europa.ec.taxud.handler.AbstractHandler
initContext, initContext, isApplicationDomainSupported, loadConfig, printHelp, validateContext
-
Constructor Details
-
StatusMessageHandler
public StatusMessageHandler()
-
-
Method Details
-
isApplicable
Checks if handler is applicable for ValidationContext.- Parameters:
context- the Validation Context- Returns:
- true if the handler is applicable, false otherwise
-
process
Generate a status message based on ValidationContext information.- Parameters:
context- the validation context- Returns:
- the result of this process as a String
- Throws:
StatusMessageException- if an internal error occurs
-
initContext
public abstract boolean initContext(ValidationContext context, StatusMessageRequest statusMessageRequest) Initialise the ValidationContext based on the statusMessageRequest object sent by the EVM interface. Use the statusMessage Request to extract all the necessary information and initialize the Validation Context with it.- Parameters:
context- The validation contextstatusMessageRequest- the request- Returns:
- true if the context is initialized
-
getRelatedValidationHandler
Gives the related validation handler of the status message handler.- Returns:
- The related validation handler. Otherwise, returns
null.
-