public class MapWebUtils
extends java.lang.Object
Constructor and Description |
---|
MapWebUtils() |
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.
|
public void writeResponse(javax.servlet.http.HttpServletResponse response, java.lang.String data, java.lang.String contentType, java.lang.String encoding)
response
- the responsedata
- the datacontentType
- the content typeencoding
- the encodingpublic java.lang.Double handlerStringCoords(java.lang.String coord)
coordinate
- valuepublic java.lang.String handlerStringCoords(java.lang.String coord, java.lang.String langcode)
coordinate
- value
langcode the language codepublic com.ibm.json.java.JSONObject getParamsAsJsonObject(java.lang.String jsonAsString)
jsonAsString
- the json as stringpublic com.ibm.json.java.JSONArray getParamsAsJsonArray(java.lang.String jsonAsString)
jsonAsString
- the json as string