Examples of SimpleHttpClient


Examples of org.geotools.data.ows.SimpleHttpClient

        @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

Examples of org.jasig.cas.util.SimpleHttpClient

            final String originalUrl,
            final String artifactId) {

        final String requestId = kryo.readObject(buffer, String.class);
        try {
            return (SamlService) CONSTRUCTOR.newInstance(id, originalUrl, artifactId, new SimpleHttpClient(), requestId);
        } catch (final Exception e) {
            throw new IllegalStateException("Error creating SamlService", e);
        }
    }
View Full Code Here

Examples of org.sf.bee.commons.net.http.SimpleHttpClient

    }

    @Override
    public void run() {
        try {
            final SimpleHttpClient client = new SimpleHttpClient();
            client.setMethodType(_method);
            client.setUri(_url);
            client.getMethodParams().putAll(_params);
            // Execute the method.
            _response = client.execute();
            Thread.sleep(10);
        } catch (Exception ex) {
            _error = ex;
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.