Tabnine Logo
ProxySettings.getProxyPort
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using uk.gov.nationalarchives.droid.core.interfaces.signature.ProxySettings.getProxyPort (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.signatureProxySettingsgetProxyPort

Popular methods of ProxySettings

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

  • Finding current android device location
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 12 Jupyter Notebook extensions
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