public abstract class AbstractClientHttpRequestFactoryProcessor extends AbstractProcessor<ClientHttpFactoryProcessorParam,ClientHttpFactoryProcessorParam> 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.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractClientHttpRequestFactoryProcessor()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ClientHttpFactoryProcessorParam |
createInputParameter()
Returns a new/clean instance of a parameter object.
|
ClientHttpFactoryProcessorParam |
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.
|
checkCancelState, getInputMapperBiMap, getInputPrefix, getOutputMapperBiMap, getOutputPrefix, getOutputType, setInputMapper, setInputPrefix, setOutputMapper, setOutputPrefix, setPrefix, toString, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateFactoryWrappergetInputMapperBiMap, getInputPrefix, getOutputMapperBiMap, getOutputPrefix, getOutputTypevalidateprotected 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,ClientHttpFactoryProcessorParam>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,ClientHttpFactoryProcessorParam>@Nullable public final ClientHttpFactoryProcessorParam execute(ClientHttpFactoryProcessorParam values, Processor.ExecutionContext context) throws java.lang.Exception
Processorexecute in interface Processor<ClientHttpFactoryProcessorParam,ClientHttpFactoryProcessorParam>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.java.lang.Exception