Class CosmosAuthorizationInterceptor

  • All Implemented Interfaces:
    com.adaptris.core.http.apache.request.RequestInterceptorBuilder, org.apache.http.HttpRequestInterceptor

    @ComponentProfile(summary="Builds an authorization header for Azure CosmosDB",
                      since="3.9.2",
                      tag="azure,cosmosdb,cosmos,interceptor")
    public class CosmosAuthorizationInterceptor
    extends java.lang.Object
    implements org.apache.http.HttpRequestInterceptor, com.adaptris.core.http.apache.request.RequestInterceptorBuilder
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.http.HttpRequestInterceptor build()  
      @NonNull java.lang.String getMasterKey()
      Your master key token.
      void process​(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)  
      void setMasterKey​(@NonNull java.lang.String masterKey)
      Your master key token.
      • Methods inherited from class java.lang.Object

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

      • CosmosAuthorizationInterceptor

        public CosmosAuthorizationInterceptor()
    • Method Detail

      • build

        public org.apache.http.HttpRequestInterceptor build()
        Specified by:
        build in interface com.adaptris.core.http.apache.request.RequestInterceptorBuilder
      • process

        public void process​(org.apache.http.HttpRequest request,
                            org.apache.http.protocol.HttpContext context)
                     throws org.apache.http.HttpException
        Specified by:
        process in interface org.apache.http.HttpRequestInterceptor
        Throws:
        org.apache.http.HttpException
      • getMasterKey

        @NonNull
        public @NonNull java.lang.String getMasterKey()
        Your master key token.
      • setMasterKey

        public void setMasterKey​(@NonNull
                                 @NonNull java.lang.String masterKey)
        Your master key token.