Package org.vfny.geoserver.wms.responses.helpers

Examples of org.vfny.geoserver.wms.responses.helpers.WMSCapsTransformer$CapabilitiesTranslator


      }
      //otherwise it's a normal response...
       

        Set<String> legendFormats = GetLegendGraphicResponse.getFormats();
        WMSCapsTransformer transformer = new WMSCapsTransformer(request.getBaseUrl(), mapFormats, legendFormats);

        // if (request.getWFS().getGeoServer().isVerbose()) {
        transformer.setIndentation(2);
        final WMS wms = (WMS)applicationContext.getBean("wms");
        final Charset encoding = wms.getCharSet();
        transformer.setEncoding(encoding);

        // }
        ByteArrayOutputStream out = new ByteArrayOutputStream();

        try {
            transformer.transform(request, out);
        } catch (TransformerException e) {
            throw new WmsException(e);
        }

        this.rawResponse = out.toByteArray();
View Full Code Here


    public void execute(Request request) throws ServiceException {
        if (!(request instanceof CapabilitiesRequest)) {
            throw new IllegalArgumentException("Not a GetCapabilities Request");
        }

        WMSCapsTransformer transformer = new WMSCapsTransformer(request
                .getSchemaBaseUrl());

       // if (request.getWFS().getGeoServer().isVerbose()) {
            transformer.setIndentation(2);
       // }

        ByteArrayOutputStream out = new ByteArrayOutputStream();

        try {
            transformer.transform(request, out);
        } catch (TransformerException e) {
            throw new WmsException(e);
        }

        this.rawResponse = out.toByteArray();
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.wms.responses.helpers.WMSCapsTransformer$CapabilitiesTranslator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.