Package org.exolab.jms.net.http

Examples of org.exolab.jms.net.http.HTTPRequestInfo


     * @return connection request info for creating a managed connection
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getManagedConnectionRequestInfo()
        throws Exception {
        return new HTTPRequestInfo(new URI("http://localhost:8080/openjms-tunnel/tunnel"));
    }
View Full Code Here


     * @return connection request info for creating a managed connection
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getManagedConnectionRequestInfo()
            throws Exception {
        HTTPRequestInfo result = new HTTPRequestInfo(
                new URI("https://localhost:8443/openjms-tunnel/tunnel"));

        result.setSSLProperties(getSSLProperties());
        return result;
    }
View Full Code Here

     * @return connection request info for creating a managed connection
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getManagedConnectionRequestInfo()
        throws Exception {
        return new HTTPRequestInfo(
                new URI("http://localhost:8080/openjms-tunnel/tunnel"));
    }
View Full Code Here

     * @return connection request info for creating a managed connection
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getManagedConnectionRequestInfo()
            throws Exception {
        HTTPRequestInfo info = new HTTPRequestInfo(
                new URI("https://localhost:8443/openjms-tunnel/tunnel"));
        SSLProperties properties =
                SSLUtil.getSSLProperties("test.keystore", "secret");
        info.setSSLProperties(properties);
        return info;
    }
View Full Code Here

        final int proxyPort = 1030;
        final String proxyUser = "bar";
        final String proxyPassword = "fly";
        final SSLProperties ssl = new SSLProperties();

        HTTPRequestInfo info = populate(uri, proxyHost, proxyPort, proxyUser,
                                        proxyPassword, ssl);

        assertEquals(uri, info.getURI().toString());
        assertEquals(proxyHost, info.getProxyHost());
        assertEquals(proxyPort, info.getProxyPort());
        assertEquals(proxyUser, info.getProxyUser());
        assertEquals(proxyPassword, info.getProxyPassword());
        assertEquals(ssl, info.getSSLProperties());
    }
View Full Code Here

        final int proxyPort = 9090;
        final String proxyUser = "hoo";
        final String proxyPassword = "shoo";
        final SSLProperties ssl = new SSLProperties();

        HTTPRequestInfo info1 = populate(uri, proxyHost, proxyPort, proxyUser,
                                         proxyPassword, null);
        HTTPRequestInfo info2 = populate(uri, proxyHost, proxyPort, proxyUser,
                                         proxyPassword, null);

        assertEquals(info1, info2);

        info2.setSSLProperties(ssl);
        assertFalse(info1.equals(info2));
    }
View Full Code Here

        ssl.setTrustStore("trustStore");
        ssl.setTrustStorePassword("trustStorePassword");
        ssl.setTrustStoreType("PCKS12");

        Properties properties = new Properties(prefix);
        HTTPRequestInfo info1 = populate(uri, proxyHost, proxyPort, proxyUser,
                                         proxyPassword, ssl);
        info1.export(properties);
        HTTPRequestInfo info2 = new HTTPRequestInfo(new URI(uri), properties);
        assertEquals(info1, info2);

        assertEquals(uri, info2.getURI().toString());
        assertEquals(proxyHost, info2.getProxyHost());
        assertEquals(proxyPort, info2.getProxyPort());
        assertEquals(proxyUser, info2.getProxyUser());
        assertEquals(proxyPassword, info2.getProxyPassword());
        assertEquals(ssl, info2.getSSLProperties());
    }
View Full Code Here

     */
    private HTTPRequestInfo populate(String uri, String host, int port,
                                     String user, String password,
                                     SSLProperties ssl)
            throws Exception {
        HTTPRequestInfo info = new HTTPRequestInfo(new URI(uri));
        info.setProxyHost(host);
        info.setProxyPort(port);
        info.setProxyUser(user);
        info.setProxyPassword(password);
        info.setSSLProperties(ssl);
        return info;
    }
View Full Code Here

TOP

Related Classes of org.exolab.jms.net.http.HTTPRequestInfo

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.