public class SetTiledWmsProcessor extends AbstractProcessor<SetTiledWmsProcessor.Input,java.lang.Void>
Processor that transforms WMS layers that are too big into tiled WMS layers.
This processor will reduce the given max tile size to best match the dimensions of the map. This is to reduce the amount of extra data that is fetched from the WMS server.
| Modifier and Type | Class and Description |
|---|---|
static class |
SetTiledWmsProcessor.Input
The input parameter object for
SetFeaturesProcessor. |
AbstractProcessor.ContextProcessor.ExecutionContext| Modifier and Type | Field and Description |
|---|---|
protected UriMatchers |
matchers
The matchers that chooses if the processor is applied or not.
|
MDC_JOB_ID_KEY| Modifier | Constructor and Description |
|---|---|
protected |
SetTiledWmsProcessor()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SetTiledWmsProcessor.Input |
createInputParameter()
Returns a new/clean instance of a parameter object.
|
java.lang.Void |
execute(SetTiledWmsProcessor.Input 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 WMS urls that are going to be modified by the processor.
|
void |
setMaxHeight(int maxHeight)
Set the maximum height in pixels.
|
void |
setMaxWidth(int maxWidth)
Set the maximum width in pixels.
|
getInputMapperBiMap, getInputPrefix, getOutputMapperBiMap, getOutputPrefix, getOutputType, setInputMapper, setInputPrefix, setOutputMapper, setOutputPrefix, setPrefix, toString, toString, validateprotected final UriMatchers matchers
public final SetTiledWmsProcessor.Input 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.
public final java.lang.Void execute(SetTiledWmsProcessor.Input values, Processor.ExecutionContext context) throws java.lang.Exception
Processorvalues - 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.Exceptionprotected final void extraValidation(java.util.List<java.lang.Throwable> validationErrors,
Configuration configuration)
AbstractProcessorextraValidation in class AbstractProcessor<SetTiledWmsProcessor.Input,java.lang.Void>validationErrors - a list to add errors to so that all validation errors are reported as
one.configuration - the containing configurationpublic void setMaxWidth(int maxWidth)
maxWidth - the valuepublic void setMaxHeight(int maxHeight)
maxHeight - the valuepublic final void setMatchers(java.util.List<? extends URIMatcher> matchers)
- !restrictUris
matchers:
- !dnsMatch
host: labs.metacarta.com
port: 80
matchers - the list of matcher to use to check if a url is permitted