/** * This is the hybrid SLD POST way. Normal is the GetMap - with a built in SLD. The alternate, * for stupid people, is the WMS parameters in the GET, and the SLD in the post. This handles * that case. */ private void handlePostGet(Node rootNode, SLDParser sldParser, GetMapRequest getMapRequest) throws Exception { // get the GET parmeters if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine(new StringBuffer("reading request: ").append(getMapRequest).toString()); } // Map<String, String> requestParams = getMapRequest.getRawKvp(); // GetMapKvpRequestReader kvpReader = new GetMapKvpRequestReader(getWMS()); // String version = kvpReader.getRequestVersion(); // getMapRequest.setVersion(version); // kvpReader.parseMandatoryParameters(getMapRequest, false); //false means dont do // styles/layers (see below) // kvpReader.parseOptionalParameters(getMapRequest); // get styles/layers from the sld. StyledLayerDescriptor sld = sldParser.parseDescriptor(rootNode); // root = // <StyledLayerDescriptor> processStyles(getMapRequest, sld); }
processStyles(getMapRequest, sld);