Class StatusMessageManager

java.lang.Object
eu.europa.ec.taxud.instantiation.StatusMessageManager

public class StatusMessageManager extends Object
StatusMessageManager is responsible for triggering the appropriate handler to generate the Status message
Version:
$Revision$
  • Constructor Details

    • StatusMessageManager

      public StatusMessageManager()
      Instantiates a new Status message manager.
  • Method Details

    • process

      public String process(ValidationContext context)
      Process the provided ValidationContext to generate the Status message corresponding to this ValidationContext by 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

      public String process(String[] args) throws StatusMessageException
      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

      public StatusMessageResult process(StatusMessageRequest statusMessageRequest)
      Process the provided StatusMessageRequest to generate the Status message corresponding to this StatusMessageRequest by 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