Package org.apache.http.conn

Examples of org.apache.http.conn.SecureSocketFactory


            throw new IllegalArgumentException
                ("Target scheme (" + schm.getName() +
                 ") must have secure socket factory.");
        }

        final SecureSocketFactory ssf =
            (SecureSocketFactory)schm.getSocketFactory();
        final Socket sock = ssf.createSocket
            (conn.getSocket(), target.getHostName(), target.getPort(), true);
        prepareSocket(sock, context, params);

        final boolean secure = ssf.isSecure(sock);

        conn.update(sock, target, secure, params);
        //@@@ error handling: close the layered socket in case of exception?

    } // updateSecureConnection
View Full Code Here

TOP

Related Classes of org.apache.http.conn.SecureSocketFactory

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.