Tabnine Logo
MultiThreadedHttpConnectionManager$HttpConnectionWithReference.setHttpConnectionManager
Code IndexAdd Tabnine to your IDE (free)

How to use
setHttpConnectionManager
method
in
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionWithReference

Best Java code snippets using org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionWithReference.setHttpConnectionManager (Showing top 5 results out of 315)

origin: commons-httpclient/commons-httpclient

/**
 * Creates a new connection and returns it for use of the calling method.
 *
 * @param hostConfiguration the configuration for the connection
 * @return a new connection or <code>null</code> if none are available
 */
public synchronized HttpConnection createConnection(HostConfiguration hostConfiguration) {
  HostConnectionPool hostPool = getHostPool(hostConfiguration, true);
  if (LOG.isDebugEnabled()) {
    LOG.debug("Allocating new connection, hostConfig=" + hostConfiguration);
  }
  HttpConnectionWithReference connection = new HttpConnectionWithReference(
      hostConfiguration);
  connection.getParams().setDefaults(MultiThreadedHttpConnectionManager.this.params);
  connection.setHttpConnectionManager(MultiThreadedHttpConnectionManager.this);
  numConnections++;
  hostPool.numConnections++;
  // store a reference to this connection so that it can be cleaned up
  // in the event it is not correctly released
  storeReferenceToConnection(connection, hostConfiguration, this);
  return connection;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

/**
 * Creates a new connection and returns it for use of the calling method.
 *
 * @param hostConfiguration the configuration for the connection
 * @return a new connection or <code>null</code> if none are available
 */
public synchronized HttpConnection createConnection(HostConfiguration hostConfiguration) {
  HostConnectionPool hostPool = getHostPool(hostConfiguration, true);
  if (LOG.isDebugEnabled()) {
    LOG.debug("Allocating new connection, hostConfig=" + hostConfiguration);
  }
  HttpConnectionWithReference connection = new HttpConnectionWithReference(
      hostConfiguration);
  connection.getParams().setDefaults(MultiThreadedHttpConnectionManager.this.params);
  connection.setHttpConnectionManager(MultiThreadedHttpConnectionManager.this);
  numConnections++;
  hostPool.numConnections++;
  // store a reference to this connection so that it can be cleaned up
  // in the event it is not correctly released
  storeReferenceToConnection(connection, hostConfiguration, this);
  return connection;
}
origin: org.apache.commons/httpclient

/**
 * Creates a new connection and returns it for use of the calling method.
 *
 * @param hostConfiguration the configuration for the connection
 * @return a new connection or <code>null</code> if none are available
 */
public synchronized HttpConnection createConnection(HostConfiguration hostConfiguration) {
  HostConnectionPool hostPool = getHostPool(hostConfiguration, true);
  if (LOG.isDebugEnabled()) {
    LOG.debug("Allocating new connection, hostConfig=" + hostConfiguration);
  }
  HttpConnectionWithReference connection = new HttpConnectionWithReference(
      hostConfiguration);
  connection.getParams().setDefaults(MultiThreadedHttpConnectionManager.this.params);
  connection.setHttpConnectionManager(MultiThreadedHttpConnectionManager.this);
  numConnections++;
  hostPool.numConnections++;
  // store a reference to this connection so that it can be cleaned up
  // in the event it is not correctly released
  storeReferenceToConnection(connection, hostConfiguration, this);
  return connection;
}
origin: org.wso2.commons-httpclient/commons-httpclient

/**
 * Creates a new connection and returns it for use of the calling method.
 *
 * @param hostConfiguration the configuration for the connection
 * @return a new connection or <code>null</code> if none are available
 */
public synchronized HttpConnection createConnection(HostConfiguration hostConfiguration) {
  HostConnectionPool hostPool = getHostPool(hostConfiguration, true);
  if (LOG.isDebugEnabled()) {
    LOG.debug("Allocating new connection, hostConfig=" + hostConfiguration);
  }
  HttpConnectionWithReference connection = new HttpConnectionWithReference(
      hostConfiguration);
  connection.getParams().setDefaults(MultiThreadedHttpConnectionManager.this.params);
  connection.setHttpConnectionManager(MultiThreadedHttpConnectionManager.this);
  numConnections++;
  hostPool.numConnections++;
  // store a reference to this connection so that it can be cleaned up
  // in the event it is not correctly released
  storeReferenceToConnection(connection, hostConfiguration, this);
  return connection;
}
origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

/**
 * Creates a new connection and returns it for use of the calling method.
 *
 * @param hostConfiguration the configuration for the connection
 * @return a new connection or <code>null</code> if none are available
 */
public synchronized HttpConnection createConnection(HostConfiguration hostConfiguration) {
  HostConnectionPool hostPool = getHostPool(hostConfiguration, true);
  if (LOG.isDebugEnabled()) {
    LOG.debug("Allocating new connection, hostConfig=" + hostConfiguration);
  }
  HttpConnectionWithReference connection = new HttpConnectionWithReference(
      hostConfiguration);
  connection.getParams().setDefaults(MultiThreadedHttpConnectionManager.this.params);
  connection.setHttpConnectionManager(MultiThreadedHttpConnectionManager.this);
  numConnections++;
  hostPool.numConnections++;
  // store a reference to this connection so that it can be cleaned up
  // in the event it is not correctly released
  storeReferenceToConnection(connection, hostConfiguration, this);
  return connection;
}
org.apache.commons.httpclientMultiThreadedHttpConnectionManager$HttpConnectionWithReferencesetHttpConnectionManager

Popular methods of MultiThreadedHttpConnectionManager$HttpConnectionWithReference

  • <init>
  • getParams

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JCheckBox (javax.swing)
  • JComboBox (javax.swing)
  • Top PhpStorm plugins
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