Esempio n. 1
0
  static {
    connmgr = new MultiThreadedHttpConnectionManager();
    setGlobalThreadCount(DFALTTHREADCOUNT);
    registry = new ArrayList<ProtocolEntry>();
    // Fill in the registry for our various https ports
    // allow self-signed certificates
    registerProtocol(
        "https", 0, new Protocol("https", new EasySSLProtocolSocketFactory(), 443)); // default
    registerProtocol(
        "https",
        8443,
        new Protocol("https", new EasySSLProtocolSocketFactory(), 8443)); // std tomcat https entry

    setGlobalConnectionTimeout(DFALTTIMEOUT);
    setGlobalSoTimeout(DFALTTIMEOUT);
    getGlobalProxyD(); // get info from -D if possible
    setGlobalKeyStore();
  }
Esempio n. 2
0
 public static void setConnectionManagerTimeout(int timeout) {
   setGlobalConnectionTimeout(timeout);
 }