public abstract class AbstractClientHttpRequestFactoryProcessor extends AbstractProcessor<ClientHttpFactoryProcessorParam,java.lang.Void> implements HttpProcessor<ClientHttpFactoryProcessorParam>
AbstractProcessor.ContextProcessor.ExecutionContext| Modifier and Type | Field and Description |
|---|---|
protected UriMatchers |
matchers
The matchers that choose if the processor is applied or not.
|
MDC_JOB_ID_KEY| Modifier | Constructor and Description |
|---|---|
protected |
AbstractClientHttpRequestFactoryProcessor()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ClientHttpFactoryProcessorParam |
createInputParameter()
Returns a new/clean instance of a parameter object.
|
java.lang.Void |
execute(ClientHttpFactoryProcessorParam values,
Processor.ExecutionContext context)
Perform the process on the input attributes.
|
protected void |
extraValidation(java.util.List<java.lang.Throwable> validationErrors,
Configuration configuration)
Perform any extra validation a subclass may need to perform.
|
void |
setMatchers(java.util.List<? extends URIMatcher> matchers)
The matchers used to select the urls that are going to be modified by the processor.
|
getInputMapperBiMap, getInputPrefix, getOutputMapperBiMap, getOutputPrefix, getOutputType, setInputMapper, setInputPrefix, setOutputMapper, setOutputPrefix, setPrefix, toString, toString, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateFactoryWrappergetInputMapperBiMap, getInputPrefix, getOutputMapperBiMap, getOutputPrefix, getOutputType, toStringvalidateprotected final UriMatchers matchers
protected AbstractClientHttpRequestFactoryProcessor()
public final void setMatchers(java.util.List<? extends URIMatcher> matchers)
- !restrictUris
matchers:
- !localMatch
dummy: true
- !ipMatch
ip: www.camptocamp.org
- !dnsMatch
host: mapfish-geoportal.demo-camptocamp.com
port: 80
- !dnsMatch
host: labs.metacarta.com
port: 80
- !dnsMatch
host: terraservice.net
port: 80
- !dnsMatch
host: tile.openstreetmap.org
port: 80
- !dnsMatch
host: www.geocat.ch
port: 80
matchers - the list of matcher to use to check if a url is permittedprotected void extraValidation(java.util.List<java.lang.Throwable> validationErrors,
Configuration configuration)
AbstractProcessorextraValidation in class AbstractProcessor<ClientHttpFactoryProcessorParam,java.lang.Void>validationErrors - a list to add errors to so that all validation errors are reported as
one.configuration - the containing configuration@Nullable public final ClientHttpFactoryProcessorParam createInputParameter()
ProcessorValues object.
The way the properties will be looked up is to
Values object using the mapped
property name
HasDefaultValue annotation is on the field for
the property.
createInputParameter in interface Processor<ClientHttpFactoryProcessorParam,java.lang.Void>@Nullable public final java.lang.Void execute(ClientHttpFactoryProcessorParam values, Processor.ExecutionContext context)
Processorexecute in interface Processor<ClientHttpFactoryProcessorParam,java.lang.Void>values - A Java object whose public fields are populated from the Values object (which is used for transferring properties between
processors).context - The execution context for a print task.Values object. The key in the
Values
object is the name of the field or if there is a mapping in the Processor.getOutputMapperBiMap()
map, the mapped name. The key is determined in a similar way as for the input object.