Class HttpClientFactory.NonBlockingHttpParamsFactory

java.lang.Object
org.apache.commons.httpclient.params.DefaultHttpParamsFactory
org.alfresco.httpclient.HttpClientFactory.NonBlockingHttpParamsFactory
All Implemented Interfaces:
org.apache.commons.httpclient.params.HttpParamsFactory
Enclosing class:
HttpClientFactory

public static class HttpClientFactory.NonBlockingHttpParamsFactory extends org.apache.commons.httpclient.params.DefaultHttpParamsFactory
An extension of the DefaultHttpParamsFactory that uses a RRW lock pattern rather than full synchronization around the parameter CRUD - to avoid locking on many reads.
Author:
Kevin Roast
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.commons.httpclient.params.HttpParams
    NOTE: This is a copy of the code in DefaultHttpParamsFactory Unfortunately this is required because although the factory pattern allows the override of the default param creation, it does not allow the class of the actual HttpParam implementation to be changed.
    org.apache.commons.httpclient.params.HttpParams
     

    Methods inherited from class java.lang.Object

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

    • NonBlockingHttpParamsFactory

      public NonBlockingHttpParamsFactory()
  • Method Details

    • getDefaultParams

      public org.apache.commons.httpclient.params.HttpParams getDefaultParams()
      Specified by:
      getDefaultParams in interface org.apache.commons.httpclient.params.HttpParamsFactory
      Overrides:
      getDefaultParams in class org.apache.commons.httpclient.params.DefaultHttpParamsFactory
    • createParams

      protected org.apache.commons.httpclient.params.HttpParams createParams()
      NOTE: This is a copy of the code in DefaultHttpParamsFactory Unfortunately this is required because although the factory pattern allows the override of the default param creation, it does not allow the class of the actual HttpParam implementation to be changed.
      Overrides:
      createParams in class org.apache.commons.httpclient.params.DefaultHttpParamsFactory