Package org.geotools.data.ows

Examples of org.geotools.data.ows.HTTPClient


                    + MOCKSERVER);
        }
        if(!TEST_MODE) {
            throw new IllegalArgumentException("The provider is not in test mode now");
        }
        HTTPClient httpClient = CLIENTS.get(url);
        if (httpClient == null) {
            throw new IllegalArgumentException("The mock url " + url + " is not bound "
                    + "to any mock http client, current bindings are towards: " + CLIENTS.keySet());
        }
        return httpClient;
View Full Code Here


        @Override
        protected void onValidate(IValidatable validatable) {
            String url = (String) validatable.getValue();
            try {
                HTTPClient client = new SimpleHttpClient();
                usernamePanel.getFormComponent().processInput();
                String user = usernamePanel.getFormComponent().getInput();
                password.getFormComponent().processInput();
                String pwd = password.getFormComponent().getInput();
                if (user != null && user.length() > 0 && pwd != null && pwd.length() > 0) {
                    client.setUser(user);
                    client.setPassword(pwd);
                }
                WebMapServer server = new WebMapServer(new URL(url), client);
                server.getCapabilities();
            } catch(Exception e) {
                error(validatable, "WMSCapabilitiesValidator.connectionFailure",
View Full Code Here

TOP

Related Classes of org.geotools.data.ows.HTTPClient

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.