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 java.lang.Object implements org.apache.http.HttpRequestInterceptorThis 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 SharedSecretRequestInterceptorgetInstance()A 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 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.IOExceptionDecorates the enclosing request with the Shared Secret Authentication header- Specified by:
processin interfaceorg.apache.http.HttpRequestInterceptor- Parameters:
httpRequest-httpContext-- Throws:
org.apache.http.HttpExceptionjava.io.IOException
-
register
public static void register()
Utility method to register the unique instance of thisHttpRequestInterceptor
-
-