|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.profiler.debugging.SimpleSitemapExecutor
Sample sitemap executor that prints out everything to a logger
Nested Class Summary |
Nested classes inherited from class org.apache.cocoon.sitemap.SitemapExecutor |
SitemapExecutor.PipelineComponentDescription |
Field Summary |
Fields inherited from interface org.apache.cocoon.sitemap.SitemapExecutor |
ROLE |
Constructor Summary | |
SimpleSitemapExecutor()
|
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,
Redirector redirector,
SourceResolver resolver,
String resolvedSource,
Parameters resolvedParams)
Invoke an action and return the result. |
Map |
invokeMatcher(ExecutionContext context,
Map objectModel,
Matcher matcher,
String pattern,
Parameters resolvedParams)
Invoke a match and return the result |
Map |
invokePreparableMatcher(ExecutionContext context,
Map objectModel,
PreparableMatcher matcher,
String pattern,
Object preparedPattern,
Parameters resolvedParams)
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. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleSitemapExecutor()
Method Detail |
public Map invokeAction(ExecutionContext context, Map objectModel, Action action, Redirector redirector, SourceResolver resolver, String resolvedSource, Parameters resolvedParams) throws Exception
SitemapExecutor
invokeAction
in interface SitemapExecutor
Exception
SitemapExecutor.invokeAction(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map, org.apache.cocoon.acting.Action, org.apache.cocoon.environment.Redirector, org.apache.cocoon.environment.SourceResolver, java.lang.String, org.apache.avalon.framework.parameters.Parameters)
public Map invokeMatcher(ExecutionContext context, Map objectModel, Matcher matcher, String pattern, Parameters resolvedParams) throws PatternException
SitemapExecutor
invokeMatcher
in interface SitemapExecutor
PatternException
SitemapExecutor.invokeMatcher(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map, org.apache.cocoon.matching.Matcher, java.lang.String, org.apache.avalon.framework.parameters.Parameters)
public Map invokePreparableMatcher(ExecutionContext context, Map objectModel, PreparableMatcher matcher, String pattern, Object preparedPattern, Parameters resolvedParams) throws PatternException
SitemapExecutor
invokePreparableMatcher
in interface SitemapExecutor
PatternException
SitemapExecutor.invokePreparableMatcher(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map, org.apache.cocoon.matching.PreparableMatcher, java.lang.String, java.lang.Object, org.apache.avalon.framework.parameters.Parameters)
public boolean invokeSelector(ExecutionContext context, Map objectModel, Selector selector, String expression, Parameters parameters)
SitemapExecutor
invokeSelector
in interface SitemapExecutor
context
- objectModel
- selector
- expression
- parameters
-
SitemapExecutor.invokeSelector(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map, org.apache.cocoon.selection.Selector, java.lang.String, org.apache.avalon.framework.parameters.Parameters)
public boolean invokeSwitchSelector(ExecutionContext context, Map objectModel, SwitchSelector selector, String expression, Parameters parameters, Object selectorContext)
SitemapExecutor
invokeSwitchSelector
in interface SitemapExecutor
context
- objectModel
- selector
- expression
- parameters
- selectorContext
- The context object for the switch selector
SitemapExecutor.invokeSwitchSelector(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map, org.apache.cocoon.selection.SwitchSelector, java.lang.String, org.apache.avalon.framework.parameters.Parameters, java.lang.Object)
public void popVariables(ExecutionContext context, Map objectModel)
SitemapExecutor
popVariables
in interface SitemapExecutor
context
- The execution contextobjectModel
- The object modelSitemapExecutor.popVariables(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map)
public Map pushVariables(ExecutionContext context, Map objectModel, String key, Map variables)
SitemapExecutor
pushVariables
in interface SitemapExecutor
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
SitemapExecutor.pushVariables(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map, java.lang.String, java.util.Map)
public void enterSitemap(ExecutionContext context, Map objectModel, String source)
SitemapExecutor
enterSitemap
in interface SitemapExecutor
context
- The execution contextobjectModel
- The object modelsource
- The uri of the sitemapSitemapExecutor.enterSitemap(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map, java.lang.String)
public SitemapExecutor.PipelineComponentDescription addGenerator(ExecutionContext context, Map objectModel, SitemapExecutor.PipelineComponentDescription desc)
SitemapExecutor
addGenerator
in interface SitemapExecutor
context
- objectModel
- desc
- The descrption of the component
SitemapExecutor.addGenerator(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map, org.apache.cocoon.sitemap.SitemapExecutor.PipelineComponentDescription)
public SitemapExecutor.PipelineComponentDescription addReader(ExecutionContext context, Map objectModel, SitemapExecutor.PipelineComponentDescription desc)
SitemapExecutor
addReader
in interface SitemapExecutor
context
- objectModel
- desc
- The descrption of the component
SitemapExecutor.addReader(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map, org.apache.cocoon.sitemap.SitemapExecutor.PipelineComponentDescription)
public SitemapExecutor.PipelineComponentDescription addSerializer(ExecutionContext context, Map objectModel, SitemapExecutor.PipelineComponentDescription desc)
SitemapExecutor
addSerializer
in interface SitemapExecutor
context
- objectModel
- desc
- The descrption of the component
SitemapExecutor.addSerializer(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map, org.apache.cocoon.sitemap.SitemapExecutor.PipelineComponentDescription)
public SitemapExecutor.PipelineComponentDescription addTransformer(ExecutionContext context, Map objectModel, SitemapExecutor.PipelineComponentDescription desc)
SitemapExecutor
addTransformer
in interface SitemapExecutor
context
- objectModel
- desc
- The descrption of the component
SitemapExecutor.addTransformer(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map, org.apache.cocoon.sitemap.SitemapExecutor.PipelineComponentDescription)
public void leaveSitemap(ExecutionContext context, Map objectModel)
SitemapExecutor
leaveSitemap
in interface SitemapExecutor
SitemapExecutor.leaveSitemap(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map)
public String redirectTo(ExecutionContext context, Map objectModel, String uri, boolean createSession, boolean global, boolean permanent)
SitemapExecutor
redirectTo
in interface SitemapExecutor
SitemapExecutor.redirectTo(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map, java.lang.String, boolean, boolean, boolean)
public SitemapExecutor.PipelineComponentDescription enteringPipeline(ExecutionContext context, Map objectModel, SitemapExecutor.PipelineComponentDescription desc)
SitemapExecutor
enteringPipeline
in interface SitemapExecutor
context
- objectModel
- desc
-
SitemapExecutor.enteringPipeline(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map, org.apache.cocoon.sitemap.SitemapExecutor.PipelineComponentDescription)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |