Package eu.europa.ec.taxud.instantiation
Class StatusMessageManager
java.lang.Object
eu.europa.ec.taxud.instantiation.StatusMessageManager
StatusMessageManager is responsible for triggering the appropriate handler to generate the Status message- Version:
- $Revision$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess(StatusMessageRequest statusMessageRequest) Process the providedStatusMessageRequestto generate the Status message corresponding to thisStatusMessageRequestby calling all the appropriate handlersprocess(ValidationContext context) Process the providedValidationContextto generate the Status message corresponding to thisValidationContextby calling all the appropriate handlersGenerates the Status message corresponding to the provided arguments by calling all the appropriate handlers.
-
Constructor Details
-
StatusMessageManager
public StatusMessageManager()Instantiates a new Status message manager.
-
-
Method Details
-
process
Process the providedValidationContextto generate the Status message corresponding to thisValidationContextby calling all the appropriate handlers- Parameters:
context- the context containg all the information needed to create the stastus message- Returns:
- the status message as string or null if no status is generated
-
process
Generates the Status message corresponding to the provided arguments by calling all the appropriate handlers. If the help option is provided no status message is generated and the method returns null- Parameters:
args- the arguments needed for the generation of the status message- Returns:
- the status message as string or null if there is no status message generated
- Throws:
StatusMessageException- if no handler is found
-
process
Process the providedStatusMessageRequestto generate the Status message corresponding to thisStatusMessageRequestby calling all the appropriate handlers- Parameters:
statusMessageRequest- the statusMessageRequest contains all the information needed to create the status message- Returns:
- the status message as string or null if no status is generated
-