- Introduction
-
Sitemap
- Sitemap Evaluation
- Writing your own components
- Concepts
- Reference
-
Sitemap Components
-
Action
- ClearCacheAction
- ClearPersistentStoreAction
- CopySourceAction
- FormValidatorAction
- HelloAction
- HttpCacheAction
- HttpHeaderAction
- InputModuleAction
- LocaleAction
- LogAction
- PreemptiveLoaderAction
- PropagatorAction
- RequestParamAction
- RequestParameterExistsAction
- ResourceExistsAction
- SessionInvalidatorAction
- SessionIsValidAction
- SessionPropagatorAction
- SessionStateAction
- SessionValidatorAction
- SetCharacterEncodingAction
- SetterAction
- Generator
- Matcher
- Pipe
- Reader
- Selector
- Serializer
- Transformer
-
Action
- Control Flow
- Modularization (Blocks)
- Configuration & Initialization
- Project Reports
ResourceExistsAction
Summary
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.
Basic information
Component type | Action |
---|---|
Cocoon block | core |
Java class | org.apache.cocoon.acting.ResourceExistsAction |
Name in Sitemap | |
Cacheable |
Documentation
Instead of src attribute, source can be specified using
parameter named url (this is old syntax, should be removed soon).
NOTE: {@link org.apache.cocoon.selection.ResourceExistsSelector}
should be preferred to this component, as the semantics of a Selector better
matches the supplied functionality.