Class SharedSecretRequestInterceptor

  • All Implemented Interfaces:
    org.apache.http.HttpRequestInterceptor

    public class SharedSecretRequestInterceptor
    extends java.lang.Object
    implements org.apache.http.HttpRequestInterceptor
    This HttpRequestInterceptor adds the header that is required for Shared Secret Authentication with Solr
    Author:
    Domenico Sibilio
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static SharedSecretRequestInterceptor getInstance()
      A typical thread-safe singleton implementation
      void process​(org.apache.http.HttpRequest httpRequest, org.apache.http.protocol.HttpContext httpContext)
      Decorates the enclosing request with the Shared Secret Authentication header
      static void register()
      Utility method to register the unique instance of this HttpRequestInterceptor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static SharedSecretRequestInterceptor getInstance()
        A typical thread-safe singleton implementation
        Returns:
        The unique instance of this class
      • process

        public void process​(org.apache.http.HttpRequest httpRequest,
                            org.apache.http.protocol.HttpContext httpContext)
                     throws org.apache.http.HttpException,
                            java.io.IOException
        Decorates the enclosing request with the Shared Secret Authentication header
        Specified by:
        process in interface org.apache.http.HttpRequestInterceptor
        Parameters:
        httpRequest -
        httpContext -
        Throws:
        org.apache.http.HttpException
        java.io.IOException
      • register

        public static void register()
        Utility method to register the unique instance of this HttpRequestInterceptor