|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.isdc.wro.util.AbstractDecorator<T> ro.isdc.wro.model.resource.processor.decorator.AbstractProcessorDecoratorSupport<ResourcePreProcessor> ro.isdc.wro.model.resource.processor.decorator.ProcessorDecorator ro.isdc.wro.extensions.processor.PathPatternProcessorDecorator
public final class PathPatternProcessorDecorator
A ProcessorDecorator
with Ant path style support. This processor requires AntPathMatcher provided by spring
framework.
Method Summary | |
---|---|
static PathPatternProcessorDecorator |
exclude(Object processor,
String... patterns)
Decorates a processor which will not be applied on provided patterns. |
static PathPatternProcessorDecorator |
include(Object processor,
String... patterns)
Decorates a processor which will be applied on provided patterns. |
void |
process(Resource resource,
Reader reader,
Writer writer)
Process a content supplied by a reader and perform some sort of processing. |
String |
toString()
|
Methods inherited from class ro.isdc.wro.model.resource.processor.decorator.ProcessorDecorator |
---|
isEligible, isEnabled |
Methods inherited from class ro.isdc.wro.model.resource.processor.decorator.AbstractProcessorDecoratorSupport |
---|
getSupportedResourceType, getSupportedResourceTypeInternal, getSupportedResourceTypes, isImportAware, isMinimize, isMinimizeInternal, isSupported, process |
Methods inherited from class ro.isdc.wro.util.AbstractDecorator |
---|
getDecoratedObject, getOriginalDecoratedObject, getOriginalDecoratedObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static PathPatternProcessorDecorator include(Object processor, String... patterns)
processor
- The processor to decorate.patterns
- an array of patterns on which the processor will be applied.
public static PathPatternProcessorDecorator exclude(Object processor, String... patterns)
processor
- The processor to decorate.patterns
- an array of patterns on which the processor will not be applied.
public void process(Resource resource, Reader reader, Writer writer) throws IOException
Resource
, because
this way you can ignore the other preProcessors from the chain.RuntimeException
and the processing chain is interrupted (by default)WroConfiguration.isIgnoreFailingProcessor()
is true)
process
in interface ResourcePreProcessor
process
in class ProcessorDecorator
resource
- the original resource as it found in the model.reader
- Reader
used to read processed resource content.writer
- Writer
where used to write processed results.
IOException
- when an exception occurs. The future version will change the exception type to Exception
, because
any exception may occur during processing. The processing failure will be handled based on value of
WroConfiguration.isIgnoreFailingProcessor()
configuration flag.public String toString()
toString
in class ProcessorDecorator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |