Codota Logo
ProxySettings.getProxyHost
Code IndexAdd Codota to your IDE (free)

How to use
getProxyHost
method
in
uk.gov.nationalarchives.droid.core.interfaces.signature.ProxySettings

Best Java code snippets using uk.gov.nationalarchives.droid.core.interfaces.signature.ProxySettings.getProxyHost (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: digital-preservation/droid

/**
 * {@inheritDoc}
 */
@Override
public void onProxyChange(ProxySettings proxySettings) {
  
  if (proxySettings.isEnabled()) {
    client = new HttpClient();
    client.getHostConfiguration().setProxy(proxySettings.getProxyHost(), proxySettings.getProxyPort());
  } else {
    client = new HttpClient();
  }
  
}
 
origin: uk.gov.nationalarchives/droid-container

/**
 * {@inheritDoc}
 */
@Override
public void onProxyChange(ProxySettings proxySettings) {
  
  if (proxySettings.isEnabled()) {
    client = new HttpClient();
    client.getHostConfiguration().setProxy(proxySettings.getProxyHost(), proxySettings.getProxyPort());
  } else {
    client = new HttpClient();
  }
  
}
 
origin: uk.gov.nationalarchives/droid-results

/**
 * {@inheritDoc}
 */
@Override
public void onProxyChange(ProxySettings proxySettings) {
  HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
  httpClientPolicy.setConnection(ConnectionType.CLOSE);
  httpClientPolicy.setAllowChunking(true);
  httpClientPolicy.setCacheControl(ClientCacheControlType.NO_CACHE);
  
  if (proxySettings.isEnabled()) {
    httpClientPolicy.setProxyServer(proxySettings.getProxyHost());
    httpClientPolicy.setProxyServerPort(proxySettings.getProxyPort());
    httpClientPolicy.setProxyServerType(ProxyServerType.HTTP);
  } else {
    httpClientPolicy.setProxyServer(null);
    httpClientPolicy.unsetProxyServerPort();
    httpClientPolicy.setProxyServerType(null);
  }
  
  Client client = ClientProxy.getClient(pronomService);
  
  HTTPConduit http = (HTTPConduit) client.getConduit();
  http.setClient(httpClientPolicy);
}
 
origin: digital-preservation/droid

/**
 * {@inheritDoc}
 */
@Override
public void onProxyChange(ProxySettings proxySettings) {
  HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
  httpClientPolicy.setConnection(ConnectionType.CLOSE);
  httpClientPolicy.setAllowChunking(true);
  httpClientPolicy.setCacheControl("no-cache");
  
  if (proxySettings.isEnabled()) {
    httpClientPolicy.setProxyServer(proxySettings.getProxyHost());
    httpClientPolicy.setProxyServerPort(proxySettings.getProxyPort());
    httpClientPolicy.setProxyServerType(ProxyServerType.HTTP);
  } else {
    httpClientPolicy.setProxyServer(null);
    httpClientPolicy.setProxyServerPort(null);
    httpClientPolicy.setProxyServerType(null);
  }
  
  Client client = ClientProxy.getClient(pronomService);
  
  HTTPConduit http = (HTTPConduit) client.getConduit();
  http.setClient(httpClientPolicy);
}
 
uk.gov.nationalarchives.droid.core.interfaces.signatureProxySettingsgetProxyHost

Popular methods of ProxySettings

  • <init>
  • 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

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • getSharedPreferences (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now