Class CollectionResponseCodes

java.lang.Object
com.skava.address.constant.CollectionResponseCodes

public class CollectionResponseCodes extends Object
Author:
Infosys Equinox Class CollectionResponseCodes This class builds and maintains all the response codes that are generated by the address collection maintenance operation. Also defines constants that are used by the address collection maintenance operations. getMessage method helps in providing appropriate response messages for the response codes that are build. Response message are provided using the message source bundle and locale.
  • Field Details

  • Constructor Details

    • CollectionResponseCodes

      protected CollectionResponseCodes()
      Protected super constructor
  • Method Details

    • getMessage

      public static String getMessage(String responseCode, Object[] args, org.springframework.context.MessageSource messageSource, String locale)
      getMessage This method provides the response message for the response code fed as input. The response message is built using
      Parameters:
      responseCode - Response code whose message needs to be determined
      args - Arguments array for getting the message
      messageSource - Response message source, where response messages for all response codes are maintained.
      locale - Locale for the response message to be returned. Local will default to en_US, if response message is not available for the locale fed as input.
      Returns:
      Returns the response message for the response code based on the values of message source and locale.