com.ibm.tivoli.maximo.map

Class MapWebUtils

  • java.lang.Object
    • com.ibm.tivoli.maximo.map.MapWebUtils


  • public class MapWebUtils
    extends java.lang.Object
    common methods for map control.
    • Constructor Summary

      Constructors 
      Constructor and Description
      MapWebUtils() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      com.ibm.json.java.JSONArray getParamsAsJsonArray(java.lang.String jsonAsString)
      Gets the params as json array.
      com.ibm.json.java.JSONObject getParamsAsJsonObject(java.lang.String jsonAsString)
      Gets the params as json object.
      java.lang.Double handlerStringCoords(java.lang.String coord)
      Handler string coordinate value.
      java.lang.String handlerStringCoords(java.lang.String coord, java.lang.String langcode)
      Handler string coordinate value.
      void writeResponse(javax.servlet.http.HttpServletResponse response, java.lang.String data, java.lang.String contentType, java.lang.String encoding)
      Write response.
      • Methods inherited from class java.lang.Object

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

      • MapWebUtils

        public MapWebUtils()
    • Method Detail

      • writeResponse

        public void writeResponse(javax.servlet.http.HttpServletResponse response,
                                  java.lang.String data,
                                  java.lang.String contentType,
                                  java.lang.String encoding)
        Write response.
        Parameters:
        response - the response
        data - the data
        contentType - the content type
        encoding - the encoding
      • handlerStringCoords

        public java.lang.Double handlerStringCoords(java.lang.String coord)
        Handler string coordinate value.
        Parameters:
        coordinate - value
        Returns:
        the double value of the coordinate
      • handlerStringCoords

        public java.lang.String handlerStringCoords(java.lang.String coord,
                                                    java.lang.String langcode)
        Handler string coordinate value.
        Parameters:
        coordinate - value langcode the language code
        Returns:
        the double value of the coordinate
      • getParamsAsJsonObject

        public com.ibm.json.java.JSONObject getParamsAsJsonObject(java.lang.String jsonAsString)
        Gets the params as json object.
        Parameters:
        jsonAsString - the json as string
        Returns:
        the params as json object
      • getParamsAsJsonArray

        public com.ibm.json.java.JSONArray getParamsAsJsonArray(java.lang.String jsonAsString)
        Gets the params as json array.
        Parameters:
        jsonAsString - the json as string
        Returns:
        the params as json array