| | |
| | | |
| | | public final static String DOM = "DOM"; |
| | | |
| | | public final static String LAYERS = "layers"; |
| | | |
| | | public final static String REQUEST = "request"; |
| | | |
| | | public final static String SERVICE = "service"; |
| | | |
| | | public final static String GET_CAPABILITIES = "GetCapabilities"; |
| | | |
| | | public final static String SUCCESS = "$SUCCESS"; |
| | |
| | | |
| | | protected String getRealCookie(String cookieValue) { |
| | | StringBuilder escapedCookie = new StringBuilder(); |
| | | |
| | | String[] cookies = cookieValue.split("[;,]"); |
| | | for (String cookie : cookies) { |
| | | String[] cookieSplit = cookie.split("="); |
| | |
| | | |
| | | String name = ":" + str.substring(start, str.indexOf("</Name>", start)); |
| | | if (!res.getTab().contains(name)) { |
| | | // index = str.lastIndexOf(">", index) |
| | | end = str.indexOf("<", end); |
| | | str = str.substring(0, index) + str.substring(end); |
| | | index = str.indexOf(StaticData.QUERYABLE, index); |
| | |
| | | return url; |
| | | } |
| | | |
| | | String str = req.getQueryString(), layers = req.getParameter("layers"); |
| | | if (!StaticData.GET_CAPABILITIES.equals(req.getParameter(StaticData.REQUEST)) && null != layers) { |
| | | String str = req.getQueryString(); |
| | | boolean isLower = str.contains(StaticData.SERVICE); |
| | | String layers = req.getParameter(isLower ? StaticData.LAYERS : StaticData.LAYERS.toUpperCase()); |
| | | String request = req.getParameter(isLower ? StaticData.REQUEST : StaticData.REQUEST.toUpperCase()); |
| | | if (!StaticData.GET_CAPABILITIES.equals(request) && null != layers) { |
| | | int start = str.indexOf("layers"); |
| | | int end = str.indexOf("&", start); |
| | | layers = filterGeoLayers(ue, layers); |