com.ibm.tivoli.maximo.map.helper

Class MapUtilCore

  • java.lang.Object
    • com.ibm.tivoli.maximo.map.helper.MapUtilCore


  • public class MapUtilCore
    extends java.lang.Object
    Class to get information about the map using the rest services
    • Constructor Summary

      Constructors 
      Constructor and Description
      MapUtilCore() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String checkMapServiceURL(java.lang.String url)
      This method will check if the user have the Map Service's URL filled correctly.
      static java.io.ByteArrayOutputStream getBytesFromURLbyGET(java.lang.String urlValue, java.util.Map params) 
      static java.lang.String getContentFromURLbyGET(java.lang.String urlValue, java.util.Map params) 
      static java.lang.String getContentFromURLbyGET(java.lang.String urlValue, java.util.Map params, UserInfo userInfo) 
      static java.net.URL getURLInstance(java.lang.String url)
      Get a URL instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapUtilCore

        public MapUtilCore()
    • Method Detail

      • getURLInstance

        public static java.net.URL getURLInstance(java.lang.String url)
                                           throws java.net.MalformedURLException
        Get a URL instance. If using authentication for secured map services this need to return a URL instance with a different HTTP Handler instance because of a Weblogic issue with its http handler.
        Throws:
        java.net.MalformedURLException
      • checkMapServiceURL

        public static java.lang.String checkMapServiceURL(java.lang.String url)
                                                   throws MXApplicationException
        This method will check if the user have the Map Service's URL filled correctly. This validation will perform a validation over the URL domain and parameters to verify if the user have not made a mistake. implemented validations: - Check if the user inputed the right service URL. - Check if the user forgot remove the parameters from the Map Service's URL.
        Parameters:
        url - the original input from the user
        Returns:
        String containing the new value or the old one if this last was right inputed.
        Throws:
        MXApplicationException