This action simply checks to see if a resource identified by the src
sitemap attribute exists or not. The action returns empty Map if
resource exists, null otherwise.
Instead of src attribute, source can be specified using
parameter named url (this is old syntax, should be removed soon).
NOTE:ResourceExistsSelector
should be preferred to this component, as the semantics of a Selector better
matches the supplied functionality.
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String src,
Parameters parameters)
Controls the processing against some values of the
Dictionary objectModel and returns a
Map object with values used in subsequent
sitemap substitution patterns.
Methods inherited from class org.apache.cocoon.acting.ServiceableAction
Controls the processing against some values of the
Dictionary objectModel and returns a
Map object with values used in subsequent
sitemap substitution patterns.
NOTE: This interface is designed so that implentations can be ThreadSafe.
When an action is ThreadSafe, only one instance serves all requests : this
reduces memory usage and avoids pooling.
objectModel - The Map with object of the
calling environment which can be used
to select values this controller may need
(ie Request, Response).
src - A source String to the Action
parameters - The Parameters for this invocation
Returns:
Map The returned Map object with
sitemap substitution values which can be used
in subsequent elements attributes like src=
using a xpath like expression: src="mydir/{myval}/foo"
If the return value is null the processing inside
the element of the sitemap will
be skipped.