Examples of IURLConnectionModifier


Examples of org.eclipse.ecf.internal.provider.filetransfer.IURLConnectionModifier

    // this is for addressing bug
    // https://bugs.eclipse.org/bugs/show_bug.cgi?id=235933
    if (getRemoteFileURL().getProtocol().equalsIgnoreCase("jar")) { //$NON-NLS-1$
      urlConnection.setUseCaches(false);
    }
    IURLConnectionModifier connectionModifier = Activator.getDefault().getURLConnectionModifier();
    if (connectionModifier != null) {
      connectionModifier.setSocketFactoryForConnection(urlConnection);
    }
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.filetransfer.IURLConnectionModifier

      // server issue described here https://bugs.eclipse.org/bugs/show_bug.cgi?id=234916#c13
      // See bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=247197
      // also see http 1.1 rfc section 14-10 in http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
      urlConnection.setRequestProperty("Connection", "close"); //$NON-NLS-1$ //$NON-NLS-2$

      IURLConnectionModifier connectionModifier = Activator.getDefault().getURLConnectionModifier();
      if (connectionModifier != null) {
        connectionModifier.setSocketFactoryForConnection(urlConnection);
      }
      if (urlConnection instanceof HttpURLConnection) {
        HttpURLConnection httpConnection = (HttpURLConnection) urlConnection;
        httpConnection.setRequestMethod("HEAD"); //$NON-NLS-1$
        httpConnection.connect();
View Full Code Here
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.