Package org.faceless.publisher.type
Class EgressFilterSequence
java.lang.Object
org.faceless.publisher.type.EgressFilterSequence
- All Implemented Interfaces:
EgressFilter
An implementation of
EgressFilter
which delegates to chain of other filters.
The filters will be run in sequence, and if any reject the URI it will be rejected,
otherwise the rewrite(org.faceless.publisher.type.URL2, org.faceless.publisher.type.URL2)
method will be called on each and the final value returned.-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionEgressFilterSequence
(Collection<EgressFilter> filters) Create a new EgressFilter from the supplied sequenceEgressFilterSequence
(EgressFilter... filters) Create a new EgressFilter from the supplied sequence -
Method Summary
Modifier and TypeMethodDescriptionReturn the list of Filters supplied to the constructorThis method will be supplied with the URL about to be loaded, and the base URL of the Document loading it.toString()
-
Constructor Details
-
EgressFilterSequence
Create a new EgressFilter from the supplied sequence- Parameters:
filter
- the filters
-
EgressFilterSequence
Create a new EgressFilter from the supplied sequence- Parameters:
filter
- the filters
-
-
Method Details
-
rewrite
Description copied from interface:EgressFilter
This method will be supplied with the URL about to be loaded, and the base URL of the Document loading it. It can return the URL as it is to load it, a rewritten URL to load a new resource instead, ornull
to disallow the load.- Specified by:
rewrite
in interfaceEgressFilter
- Parameters:
uri
- the destination URLbase
- the URL of the document, or null if we're testing the base URL of the document- Returns:
- the URL to load, or
null
to disallow access
-
getEgressFilters
Return the list of Filters supplied to the constructor -
toString
-