Tabnine Logo
ProxySettings.getProxyHost
Code IndexAdd Tabnine 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)

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

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JTextField (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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