Class ApacheConnector.ConnectionFactory

java.lang.Object
org.apache.http.impl.conn.ManagedHttpClientConnectionFactory
org.glassfish.jersey.apache.connector.ApacheConnector.ConnectionFactory
All Implemented Interfaces:
org.apache.http.conn.HttpConnectionFactory<org.apache.http.conn.routing.HttpRoute,org.apache.http.conn.ManagedHttpClientConnection>
Enclosing class:
ApacheConnector

private static class ApacheConnector.ConnectionFactory extends org.apache.http.impl.conn.ManagedHttpClientConnectionFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
     
    private static final AtomicLong
     

    Fields inherited from class org.apache.http.impl.conn.ManagedHttpClientConnectionFactory

    INSTANCE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    ConnectionFactory(int chunkSize)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.http.conn.ManagedHttpClientConnection
    create(org.apache.http.conn.routing.HttpRoute route, org.apache.http.config.ConnectionConfig config)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • COUNTER

      private static final AtomicLong COUNTER
    • chunkSize

      private final int chunkSize
  • Constructor Details

    • ConnectionFactory

      private ConnectionFactory(int chunkSize)
  • Method Details

    • create

      public org.apache.http.conn.ManagedHttpClientConnection create(org.apache.http.conn.routing.HttpRoute route, org.apache.http.config.ConnectionConfig config)
      Specified by:
      create in interface org.apache.http.conn.HttpConnectionFactory<org.apache.http.conn.routing.HttpRoute,org.apache.http.conn.ManagedHttpClientConnection>
      Overrides:
      create in class org.apache.http.impl.conn.ManagedHttpClientConnectionFactory