Class URLMappingHolder


  • public class URLMappingHolder
    extends Object
    This class is to hold URL mappings Vs actual URL in order to use them at run time.
    • Method Detail

      • getDefaultHost

        public String getDefaultHost()
      • setDefaultHost

        public void setDefaultHost​(String defaultHost)
      • putUrlMappingForApplication

        public void putUrlMappingForApplication​(String urlMapping,
                                                String application)
        Method to put url mapping with application to the map
        Parameters:
        urlMapping - url mapping for an application
        application - application which has url mapping
      • getApplicationFromUrlMapping

        public String getApplicationFromUrlMapping​(String urlMapping)
        Method to obtain url application of url mapping from the map.
        Parameters:
        urlMapping - url mapping for an application
        Returns:
        application which has url mapping
      • removeUrlMappingMap

        public void removeUrlMappingMap​(String urlMapping)
        Method to remove url mapping from the map.
        Parameters:
        urlMapping - url mapping for an application
      • isUrlMappingExists

        public boolean isUrlMappingExists​(String urlMapping)
        Method to check whether the mapping exists or not.
        Parameters:
        urlMapping - url mapping for an application
        Returns:
        if mapping exists
      • getUrlMappingsPerApplication

        public List<String> getUrlMappingsPerApplication​(String applicationContext)
        Method to get url mappings per application
        Parameters:
        applicationContext - the application to get the url mappings
        Returns:
        list of url mappings for an application
      • getUrlMappingOfApplication

        public Map<String,​String> getUrlMappingOfApplication()
        Method to get the whole url mapping.
        Returns:
        the map of url mapping