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

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

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

Popular methods of MultiThreadedHttpConnectionManager$HttpConnectionWithReference

  • <init>
  • setHttpConnectionManager

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JLabel (javax.swing)
  • JPanel (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Top Sublime Text 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