Package org.apache.tomcat.lite.http

Source Code of org.apache.tomcat.lite.http.HttpClient

/*
*/
package org.apache.tomcat.lite.http;

import org.apache.tomcat.lite.io.SocketConnector;
import org.apache.tomcat.lite.io.SslProvider;
import org.apache.tomcat.lite.io.jsse.JsseSslProvider;

/**
* Entry point for http client code.
*
* ( initial version after removing 'integration', will add settings,
* defaults, helpers )
*/
public class HttpClient {
    static SslProvider sslConC = new JsseSslProvider();

    public synchronized static HttpConnector newClient() {
        return new HttpConnector(new SocketConnector()).withSsl(sslConC);
    }

}
TOP

Related Classes of org.apache.tomcat.lite.http.HttpClient

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.