congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ProxySettings.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
uk.gov.nationalarchives.droid.core.interfaces.signature.ProxySettings
constructor

Best Java code snippets using uk.gov.nationalarchives.droid.core.interfaces.signature.ProxySettings.<init> (Showing top 6 results out of 315)

origin: digital-preservation/droid

/**
 * @return a new instance
 */
public static ProxySettings newInstance() {
  return new ProxySettings();
}
/**
origin: uk.gov.nationalarchives/droid-core-interfaces

/**
 * @return a nnew instance
 */
public static ProxySettings newInstance() {
  return new ProxySettings();
}
/**
origin: stackoverflow.com

CookieManager cookiemanager = LoginUtils.loginFormBasedJ2EE("hostname", "username", "password");
         SyncProxy.setBaseURL("baseURI");
         StandardDispatchService rpcService =  SyncProxy.createProxy(StandardDispatchService.class,
             new ProxySettings().setCookieManager(cookiemanager));
         System.out.println(cookiemanager.getCookieStore().getCookies().get(0));
         String JSESSIONID = cookiemanager.getCookieStore().getCookies().get(0).getValue();
         rpcService.execute(new XXXAction(XXX,XX));
origin: stackoverflow.com

new ProxySettings().setCookieManager(cookiemanager));
origin: uk.gov.nationalarchives/droid-results

/**
 * Initailisation post-construct.
 */
public void init() {
  config.getProperties().addConfigurationListener(proxySettings);
  Configuration configuration = config.getProperties();
  
  proxySettings = new ProxySettings();
  proxySettings.setEnabled(configuration.getBoolean(DroidGlobalProperty.UPDATE_USE_PROXY.getName()));
  proxySettings.setProxyHost(configuration.getString(DroidGlobalProperty.UPDATE_PROXY_HOST.getName()));
  proxySettings.setProxyPort(configuration.getInt(DroidGlobalProperty.UPDATE_PROXY_PORT.getName()));
  proxySettings.setEnabled(configuration.getBoolean(DroidGlobalProperty.UPDATE_USE_PROXY.getName()));
  
  config.getProperties().addConfigurationListener(proxySettings);
  
  for (SignatureUpdateService subscriber : signatureUpdateServices.values()) {
    subscriber.init(config);
    proxySettings.addProxySubscriber(subscriber);
    config.getProperties().addConfigurationListener(subscriber);
  }
  
  proxySettings.notifyProxySubscribers();
}
 
origin: digital-preservation/droid

/**
 * Initailisation post-construct.
 */
public void init() {
  config.getProperties().addConfigurationListener(proxySettings);
  Configuration configuration = config.getProperties();
  
  proxySettings = new ProxySettings();
  proxySettings.setEnabled(configuration.getBoolean(DroidGlobalProperty.UPDATE_USE_PROXY.getName()));
  proxySettings.setProxyHost(configuration.getString(DroidGlobalProperty.UPDATE_PROXY_HOST.getName()));
  proxySettings.setProxyPort(configuration.getInt(DroidGlobalProperty.UPDATE_PROXY_PORT.getName()));
  proxySettings.setEnabled(configuration.getBoolean(DroidGlobalProperty.UPDATE_USE_PROXY.getName()));
  
  config.getProperties().addConfigurationListener(proxySettings);
  
  for (SignatureUpdateService subscriber : signatureUpdateServices.values()) {
    subscriber.init(config);
    proxySettings.addProxySubscriber(subscriber);
    config.getProperties().addConfigurationListener(subscriber);
  }
  
  proxySettings.notifyProxySubscribers();
}
 
uk.gov.nationalarchives.droid.core.interfaces.signatureProxySettings<init>

Popular methods of ProxySettings

  • getProxyHost
  • getProxyPort
  • isEnabled
  • notifyProxySubscribers
    Notifies all proxy subscribers of a proxy setting change.
  • setEnabled
  • setProxyHost
  • setProxyPort
  • addProxySubscriber
    Adds a service that subscribes to these proxy settings.

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • JCheckBox (javax.swing)
  • JFileChooser (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now