|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The sitemap executor executes all sitemap statements, so it actually calls an action, adds a generator to the pipeline etc. By separating this functionality into a single object it is easier to plugin custom profiling or debugging tools. TODO - This is not finished yet! TODO - we should add invocation of a Redirector as well
Nested Class Summary | |
static class |
SitemapExecutor.PipelineComponentDescription
|
Field Summary | |
static String |
ROLE
The component role |
Method Summary | |
SitemapExecutor.PipelineComponentDescription |
addGenerator(ExecutionContext context,
Map objectModel,
SitemapExecutor.PipelineComponentDescription desc)
Add a generator |
SitemapExecutor.PipelineComponentDescription |
addReader(ExecutionContext context,
Map objectModel,
SitemapExecutor.PipelineComponentDescription desc)
Add a reader |
SitemapExecutor.PipelineComponentDescription |
addSerializer(ExecutionContext context,
Map objectModel,
SitemapExecutor.PipelineComponentDescription desc)
Add a serializer |
SitemapExecutor.PipelineComponentDescription |
addTransformer(ExecutionContext context,
Map objectModel,
SitemapExecutor.PipelineComponentDescription desc)
Add a transformer |
SitemapExecutor.PipelineComponentDescription |
enteringPipeline(ExecutionContext context,
Map objectModel,
SitemapExecutor.PipelineComponentDescription desc)
This informs the executor about a new pipeline section. |
void |
enterSitemap(ExecutionContext context,
Map objectModel,
String source)
Enter a new sitemap |
Map |
invokeAction(ExecutionContext context,
Map objectModel,
Action action,
org.apache.cocoon.environment.Redirector redirector,
org.apache.cocoon.environment.SourceResolver resolver,
String source,
Parameters parameters)
Invoke an action and return the result. |
Map |
invokeMatcher(ExecutionContext context,
Map objectModel,
Matcher matcher,
String pattern,
Parameters parameters)
Invoke a match and return the result |
Map |
invokePreparableMatcher(ExecutionContext context,
Map objectModel,
PreparableMatcher matcher,
String pattern,
Object preparedPattern,
Parameters parameters)
Invoke a match and return the result |
boolean |
invokeSelector(ExecutionContext context,
Map objectModel,
Selector selector,
String expression,
Parameters parameters)
Invoke a selector |
boolean |
invokeSwitchSelector(ExecutionContext context,
Map objectModel,
SwitchSelector selector,
String expression,
Parameters parameters,
Object selectorContext)
Invoke a switch selector |
void |
leaveSitemap(ExecutionContext context,
Map objectModel)
Leaves a sitemap. |
void |
popVariables(ExecutionContext context,
Map objectModel)
Pop a map of information from the context stack. |
Map |
pushVariables(ExecutionContext context,
Map objectModel,
String key,
Map variables)
Push map of information on the context stack. |
String |
redirectTo(ExecutionContext context,
Map objectModel,
String uri,
boolean createSession,
boolean global,
boolean permanent)
Informs about a redirect. |
Field Detail |
public static final String ROLE
Method Detail |
public Map invokeAction(ExecutionContext context, Map objectModel, Action action, org.apache.cocoon.environment.Redirector redirector, org.apache.cocoon.environment.SourceResolver resolver, String source, Parameters parameters) throws Exception
Exception
public Map invokeMatcher(ExecutionContext context, Map objectModel, Matcher matcher, String pattern, Parameters parameters) throws PatternException
PatternException
public Map invokePreparableMatcher(ExecutionContext context, Map objectModel, PreparableMatcher matcher, String pattern, Object preparedPattern, Parameters parameters) throws PatternException
PatternException
public boolean invokeSelector(ExecutionContext context, Map objectModel, Selector selector, String expression, Parameters parameters)
context
- objectModel
- selector
- expression
- parameters
-
public boolean invokeSwitchSelector(ExecutionContext context, Map objectModel, SwitchSelector selector, String expression, Parameters parameters, Object selectorContext)
context
- objectModel
- selector
- expression
- parameters
- selectorContext
- The context object for the switch selector
public Map pushVariables(ExecutionContext context, Map objectModel, String key, Map variables)
context
- The execution contextobjectModel
- The object modelkey
- A key that can be used to identify this map (can be null)variables
- The variables as key/value pairs
public void popVariables(ExecutionContext context, Map objectModel)
context
- The execution contextobjectModel
- The object modelpublic void enterSitemap(ExecutionContext context, Map objectModel, String source)
context
- The execution contextobjectModel
- The object modelsource
- The uri of the sitemappublic void leaveSitemap(ExecutionContext context, Map objectModel)
public SitemapExecutor.PipelineComponentDescription addGenerator(ExecutionContext context, Map objectModel, SitemapExecutor.PipelineComponentDescription desc)
context
- objectModel
- desc
- The descrption of the component
public SitemapExecutor.PipelineComponentDescription addTransformer(ExecutionContext context, Map objectModel, SitemapExecutor.PipelineComponentDescription desc)
context
- objectModel
- desc
- The descrption of the component
public SitemapExecutor.PipelineComponentDescription addSerializer(ExecutionContext context, Map objectModel, SitemapExecutor.PipelineComponentDescription desc)
context
- objectModel
- desc
- The descrption of the component
public SitemapExecutor.PipelineComponentDescription addReader(ExecutionContext context, Map objectModel, SitemapExecutor.PipelineComponentDescription desc)
context
- objectModel
- desc
- The descrption of the component
public SitemapExecutor.PipelineComponentDescription enteringPipeline(ExecutionContext context, Map objectModel, SitemapExecutor.PipelineComponentDescription desc)
context
- objectModel
- desc
-
public String redirectTo(ExecutionContext context, Map objectModel, String uri, boolean createSession, boolean global, boolean permanent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |