Class ServicesDefaultValues


  • public class ServicesDefaultValues
    extends Object
    This class holds the default values of service schema.
    • Method Detail

      • setServiceConfigValues

        public static void setServiceConfigValues​(IHttpServletRequest request)
        This method validates the form fields and populates the map with valid values.
        Parameters:
        request - is the Servlet Request.
      • isCookieDomainValid

        public static boolean isCookieDomainValid​(String cookieDomain)
        Validates if cookie Domain is syntactically correct.
        Parameters:
        cookieDomain - is the user specified cookie domain.
        Returns:
        true if syntax for cookie domain is correct.
      • getDefaultValues

        public static Map getDefaultValues()
        Returns the map of default attribute name to its value.
        Returns:
        the map of default attribute name to its value.
      • setDeployURI

        public static void setDeployURI​(String deployURI,
                                        Map map)
        Set the deploy URI.
        Parameters:
        deployURI - Deploy URI.
        map - Service attribute values.
      • tagSwap

        public static String tagSwap​(String orig)
        Returns the tag swapped string.
        Parameters:
        orig - String to be tag swapped.
        Returns:
        the tag swapped string.
      • tagSwap

        public static String tagSwap​(String orig,
                                     boolean bXML)
        Returns the tag swapped string.
        Parameters:
        orig - String to be tag swapped.
        bXML - true if it is an XML file. and value needs to be escaped.
        Returns:
        the tag swapped string.