Package org.geotools.data.ws.protocol.http

Examples of org.geotools.data.ws.protocol.http.SimpleHttpProtocol


        final boolean tryGZIP = (Boolean) TRY_GZIP.lookUp(params);
        final String templateName = (String) TEMPLATE_NAME.lookUp(params);
        final URL templateDirectory = (URL) TEMPLATE_DIRECTORY.lookUp(params);
        final URL capabilitiesDirectory = (URL) CAPABILITIES_FILE_LOCATION.lookUp(params);

        final HTTPProtocol http = new SimpleHttpProtocol();
        http.setTryGzip(tryGZIP);
        http.setTimeoutMillis(timeoutMillis);

        InputStream capsIn = new BufferedInputStream(new FileInputStream(DataUtilities.urlToFile(capabilitiesDirectory)));

        WSStrategy strategy = determineCorrectStrategy(templateDirectory, templateName);
        WS_Protocol ws = new WS_Protocol(capsIn, strategy, getQueryRequest, http);
View Full Code Here

TOP

Related Classes of org.geotools.data.ws.protocol.http.SimpleHttpProtocol

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.