Package org.eclipse.ecf.internal.provider.filetransfer.httpclient4

Examples of org.eclipse.ecf.internal.provider.filetransfer.httpclient4.ECFHttpClientProtocolSocketFactory


        return null;
      }

    });
    this.proxyHelper = new JREProxyHelper();
    this.connectingSockets = new ConnectingSocketMonitor(1);

    prepareAuth();
  }
View Full Code Here


  public HttpClientRetrieveFileTransfer(DefaultHttpClient httpClient) {
    this.httpClient = httpClient;
    Assert.isNotNull(this.httpClient);
    this.httpClient.setCredentialsProvider(new ECFCredentialsProvider());
    proxyHelper = new JREProxyHelper();
    connectingSockets = new ConnectingSocketMonitor(1);
    socketEventSource = new SocketEventSource() {
      public Object getAdapter(Class adapter) {
        if (adapter == null) {
          return null;
        }
View Full Code Here

  }

  private synchronized void registerSchemes(ISocketEventSource source, ISocketListener socketListener) {
    SchemeRegistry schemeRegistry = this.httpClient.getConnectionManager().getSchemeRegistry();

    Scheme http = new Scheme(HttpClientRetrieveFileTransfer.HTTP, HTTP_PORT, new ECFHttpClientProtocolSocketFactory(SocketFactory.getDefault(), source, socketListener));

    Trace.trace(Activator.PLUGIN_ID, "registering http scheme"); //$NON-NLS-1$
    schemeRegistry.register(http);

    ISSLSocketFactoryModifier sslSocketFactoryModifier = Activator.getDefault().getSSLSocketFactoryModifier();
View Full Code Here

      Trace.catching(Activator.PLUGIN_ID, DebugOptions.EXCEPTIONS_CATCHING, ISSLSocketFactoryModifier.class, "getSSLSocketFactory()", e); //$NON-NLS-1$
      Trace.throwing(Activator.PLUGIN_ID, DebugOptions.EXCEPTIONS_THROWING, HttpClientRetrieveFileTransfer.class, "registerSchemes()", e); //$NON-NLS-1$
      throw new ECFRuntimeException("Unable to instantiate schemes for HttpClient.", e); //$NON-NLS-1$
    }

    Scheme https = new Scheme(HttpClientRetrieveFileTransfer.HTTPS, HTTPS_PORT, new ECFHttpClientSecureProtocolSocketFactory(sslSocketFactory, source, socketListener));
    Trace.trace(Activator.PLUGIN_ID, "registering https scheme; modifier=" + sslSocketFactoryModifier); //$NON-NLS-1$
    schemeRegistry.register(https);

    // SPNEGO is not supported, so remove it from the list
    List authpref = new ArrayList(3);
View Full Code Here

   */
  public HttpClientFileSystemBrowser(DefaultHttpClient httpClient, IFileID directoryOrFileID, IRemoteFileSystemListener listener, URL directoryOrFileURL, IConnectContext connectContext, Proxy proxy) {
    super(directoryOrFileID, listener, directoryOrFileURL, connectContext, proxy);
    Assert.isNotNull(httpClient);
    this.httpClient = httpClient;
    this.httpClient.setCredentialsProvider(new HttpClientProxyCredentialProvider() {

      protected Proxy getECFProxy() {
        return getProxy();
      }

View Full Code Here

    Scheme http = new Scheme(HttpClientRetrieveFileTransfer.HTTP, HTTP_PORT, new ECFHttpClientProtocolSocketFactory(SocketFactory.getDefault(), source, socketListener));

    Trace.trace(Activator.PLUGIN_ID, "registering http scheme"); //$NON-NLS-1$
    schemeRegistry.register(http);

    ISSLSocketFactoryModifier sslSocketFactoryModifier = Activator.getDefault().getSSLSocketFactoryModifier();

    if (sslSocketFactoryModifier == null) {
      sslSocketFactoryModifier = new HttpClientDefaultSSLSocketFactoryModifier();
    }

    SSLSocketFactory sslSocketFactory = null;
    try {
      sslSocketFactory = sslSocketFactoryModifier.getSSLSocketFactory();
    } catch (IOException e) {
      Trace.catching(Activator.PLUGIN_ID, DebugOptions.EXCEPTIONS_CATCHING, ISSLSocketFactoryModifier.class, "getSSLSocketFactory()", e); //$NON-NLS-1$
      Trace.throwing(Activator.PLUGIN_ID, DebugOptions.EXCEPTIONS_THROWING, HttpClientRetrieveFileTransfer.class, "registerSchemes()", e); //$NON-NLS-1$
      throw new ECFRuntimeException("Unable to instantiate schemes for HttpClient.", e); //$NON-NLS-1$
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.internal.provider.filetransfer.httpclient4.ECFHttpClientProtocolSocketFactory

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.