Tabnine Logo
MultiThreadedHttpConnectionManager$HttpConnectionWithReference.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionWithReference
constructor

Best Java code snippets using org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionWithReference.<init> (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$HttpConnectionWithReference<init>

Popular methods of MultiThreadedHttpConnectionManager$HttpConnectionWithReference

  • getParams
  • setHttpConnectionManager

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Option (scala)
  • CodeWhisperer alternatives
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