Class SharedSecretRequestInterceptor

java.lang.Object
org.alfresco.solr.io.interceptor.SharedSecretRequestInterceptor
All Implemented Interfaces:
org.apache.http.HttpRequestInterceptor

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

    • 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, 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
      IOException
    • register

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