Package org.alfresco.solr.io.interceptor
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 Summary
Modifier and TypeMethodDescriptionA typical thread-safe singleton implementationvoidprocess(org.apache.http.HttpRequest httpRequest, org.apache.http.protocol.HttpContext httpContext) Decorates the enclosing request with the Shared Secret Authentication headerstatic voidregister()Utility method to register the unique instance of thisHttpRequestInterceptor
-
Method Details
-
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:
processin interfaceorg.apache.http.HttpRequestInterceptor- Parameters:
httpRequest-httpContext-- Throws:
org.apache.http.HttpExceptionIOException
-
register
public static void register()Utility method to register the unique instance of thisHttpRequestInterceptor
-