Interface ProxyServiceFacade

  • All Known Implementing Classes:
    ProxyServiceFacadeImpl

    public interface ProxyServiceFacade
    A facade for the org.eclipse.core.net.proxy.IProxyService which hides original eclipse classes and thus enables usage from POM-first maven projects which can not have a dependency on org.eclipse.core.net.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clearPersistentProxySettings()
      Discard persistent proxy settings.
      void configureProxy​(java.lang.String protocol, java.lang.String host, int port, java.lang.String user, java.lang.String password, java.lang.String nonProxyHosts)
      Configure the OSGI proxy service for the protocol specified.
    • Method Detail

      • configureProxy

        void configureProxy​(java.lang.String protocol,
                            java.lang.String host,
                            int port,
                            java.lang.String user,
                            java.lang.String password,
                            java.lang.String nonProxyHosts)
        Configure the OSGI proxy service for the protocol specified. Parameter values are assumed to be taken from {@see org.apache.maven.settings.Proxy}
        Parameters:
        protocol - proxy protocol
        host - proxy host
        port - proxy port
        user - may be null
        password - may be null
        nonProxyHosts - pipe-separated list of non-proxied hosts, may be null
      • clearPersistentProxySettings

        void clearPersistentProxySettings()
        Discard persistent proxy settings. This is needed because org.eclipse.core.net.proxy.IProxyService always remembers its settings in eclipse/configuration/.settings/org.eclipse.core.net.prefs. Otherwise proxy settings would survive across OSGi framework restarts and thus influence subsequent builds.