public final class UseHttpForHttpsProcessor extends AbstractClientHttpRequestFactoryProcessor
Example:
- !useHttpForHttps
hosts: [localhost, www.camptocamp.com]
portMapping:
443 : 80
8443 : 8443
Can be applied conditionally using matchers, like in RestrictUrisProcessor
(!restrictUris
).
AbstractProcessor.ContextProcessor.ExecutionContextmatchersMDC_JOB_ID_KEY| Modifier | Constructor and Description |
|---|---|
protected |
UseHttpForHttpsProcessor()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
MfClientHttpRequestFactory |
createFactoryWrapper(ClientHttpFactoryProcessorParam clientHttpFactoryProcessorParam,
MfClientHttpRequestFactory requestFactory)
Create the
MfClientHttpRequestFactory to use. |
protected void |
extraValidation(java.util.List<java.lang.Throwable> validationErrors,
Configuration configuration)
Perform any extra validation a subclass may need to perform.
|
void |
setHosts(java.util.List<java.lang.String> hosts)
Set the patterns to use for selecting the hosts to apply the https -> http mapping to.
|
void |
setPortMapping(java.util.Map<java.lang.Integer,java.lang.Integer> portMapping)
Set the https port to http port mapping.
|
createInputParameter, execute, setMatchersgetInputMapperBiMap, getInputPrefix, getOutputMapperBiMap, getOutputPrefix, getOutputType, setInputMapper, setInputPrefix, setOutputMapper, setOutputPrefix, setPrefix, toString, toString, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInputMapperBiMap, getInputPrefix, getOutputMapperBiMap, getOutputPrefix, getOutputType, toStringvalidateprotected void extraValidation(java.util.List<java.lang.Throwable> validationErrors,
Configuration configuration)
AbstractProcessorextraValidation in class AbstractClientHttpRequestFactoryProcessorvalidationErrors - a list to add errors to so that all validation errors are reported as
one.configuration - the containing configurationpublic MfClientHttpRequestFactory createFactoryWrapper(ClientHttpFactoryProcessorParam clientHttpFactoryProcessorParam, MfClientHttpRequestFactory requestFactory)
HttpProcessorMfClientHttpRequestFactory to use.clientHttpFactoryProcessorParam - extra parameters required to create the updated request factoryrequestFactory - the basic request factory. It should be unmodified and just wrapped with
a proxy class.public void setPortMapping(java.util.Map<java.lang.Integer,java.lang.Integer> portMapping)
portMapping - the mappings to add.public void setHosts(java.util.List<java.lang.String> hosts)
hosts - hosts to match. Can be regular expressions