Package org.apache.cxf.transport.http

Examples of org.apache.cxf.transport.http.HttpURLConnectionInfo


    ) throws UntrustedURLConnectionIOException {
        System.out.println("Trust decision for conduit: "
                + conduitName + " and "
                + connectionInfo.getURI());
        if (connectionInfo instanceof HttpURLConnectionInfo) {
            HttpURLConnectionInfo c = (HttpURLConnectionInfo) connectionInfo;
            System.out.println("Http method: "
                    + c.getHttpRequestMethod() + " on " + c.getURI());
        }
        if (connectionInfo instanceof HttpsURLConnectionInfo) {
            HttpsURLConnectionInfo c = (HttpsURLConnectionInfo) connectionInfo;
            System.out.println("TLS Connection to: " + c.getURI());
            System.out.println("Enabled Cipher: " + c.getEnabledCipherSuite());
            System.out.println("Local Principal: " + c.getLocalPrincipal());
            System.out.println("Peer Principal: " + c.getPeerPrincipal());
        }
        //throw new UntrustedURLConnectionIOException("No Way Jose");
    }
View Full Code Here


    ) throws UntrustedURLConnectionIOException {
        System.out.println("Trust decision for conduit: "
                + conduitName + " and "
                + connectionInfo.getURL());
        if (connectionInfo instanceof HttpURLConnectionInfo) {
            HttpURLConnectionInfo c = (HttpURLConnectionInfo) connectionInfo;
            System.out.println("Http method: "
                    + c.getHttpRequestMethod() + " on " + c.getURL());
        }
        if (connectionInfo instanceof HttpsURLConnectionInfo) {
            HttpsURLConnectionInfo c = (HttpsURLConnectionInfo) connectionInfo;
            System.out.println("TLS Connection to: " + c.getURL());
            System.out.println("Enabled Cipher: " + c.getEnabledCipherSuite());
            System.out.println("Local Principal: " + c.getLocalPrincipal());
            System.out.println("Peer Principal: " + c.getPeerPrincipal());
        }
        //throw new UntrustedURLConnectionIOException("No Way Jose");
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.transport.http.HttpURLConnectionInfo

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.