Package com.adaptris.core.http.apache5
Class ConfiguredAuthorizationHeader
- java.lang.Object
-
- com.adaptris.core.http.apache5.ConfiguredAuthorizationHeader
-
- All Implemented Interfaces:
ApacheRequestAuthenticator,HttpAuthenticator,java.lang.AutoCloseable
public class ConfiguredAuthorizationHeader extends java.lang.Object implements ApacheRequestAuthenticator
Build anHttpConstants.AUTHORIZATIONheader from static data.In the adapter configuration file this class is aliased as apache-http-configured-authorization-header which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description ConfiguredAuthorizationHeader()ConfiguredAuthorizationHeader(java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidconfigure(org.apache.hc.client5.http.classic.methods.HttpUriRequestBase req)Perform whatever actions are required to the HttpRequestBase.java.lang.StringgetHeaderValue()voidsetHeaderValue(java.lang.String headerValue)The value for the authorization headervoidsetup(java.lang.String target, AdaptrisMessage msg, ResourceTargetMatcher m)
-
-
-
Method Detail
-
getHeaderValue
public java.lang.String getHeaderValue()
-
setHeaderValue
public void setHeaderValue(java.lang.String headerValue)
The value for the authorization header- Parameters:
headerValue-
-
setup
public void setup(java.lang.String target, AdaptrisMessage msg, ResourceTargetMatcher m) throws CoreException- Specified by:
setupin interfaceHttpAuthenticator- Throws:
CoreException
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceHttpAuthenticator
-
configure
public void configure(org.apache.hc.client5.http.classic.methods.HttpUriRequestBase req)
Description copied from interface:ApacheRequestAuthenticatorPerform whatever actions are required to the HttpRequestBase.- Specified by:
configurein interfaceApacheRequestAuthenticator
-
-