|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.cocoon.sitemap.AbstractSitemap
Base class for generated Sitemap
classes
Field Summary | |
protected DefaultSitemapComponentSelector |
actions
|
protected long |
dateCreated
The creation date |
protected DefaultSitemapComponentSelector |
generators
|
protected CocoonComponentManager |
manager
The component manager instance |
protected DefaultSitemapComponentSelector |
matchers
|
protected DefaultSitemapComponentSelector |
readers
|
protected DefaultSitemapComponentSelector |
selectors
|
protected DefaultSitemapComponentSelector |
serializers
|
protected Manager |
sitemapManager
The sitemap manager instance |
protected DefaultSitemapComponentSelector |
sitemaps
|
protected DefaultSitemapComponentSelector |
transformers
|
protected URLFactory |
urlFactory
The URLFactory instance |
Fields inherited from interface org.apache.cocoon.sitemap.Sitemap |
ACTION, GENERATOR, MATCHER, READER, SELECTOR, SERIALIZER, TRANSFORMER |
Fields inherited from interface org.apache.cocoon.Processor |
ROLE |
Constructor Summary | |
AbstractSitemap()
|
Method Summary | |
void |
compose(org.apache.avalon.framework.component.ComponentManager manager)
Set the current ComponentManager instance used by this
Composable . |
void |
contextualize(org.apache.avalon.framework.context.Context context)
|
void |
dispose()
dispose |
protected void |
dumpParameters(java.util.List list)
Dumps all sitemap parameters to log |
org.apache.avalon.framework.component.ComponentManager |
getComponentManager()
Return the component manager for this sitemap |
protected boolean |
invoke(Environment environment,
java.lang.String prefix,
java.lang.String source,
boolean checkReload,
boolean reloadAsync,
long checkDelay)
|
protected boolean |
invoke(Environment environment,
java.lang.String prefix,
java.lang.String source,
boolean checkReload,
boolean reloadAsync,
long checkDelay,
StreamPipeline pipeline,
EventPipeline eventPipeline)
|
protected boolean |
invokeMethod(java.lang.String methodName,
java.lang.Class[] argTypes,
java.lang.Object[] argValues)
Invokes a method of this class using Java Reflection |
void |
load_component(int type,
java.lang.Object hint,
java.lang.String classURL,
org.apache.avalon.framework.configuration.Configuration configuration,
java.lang.String mime_type)
Loads a class specified in a sitemap component definition and initialize it |
boolean |
modifiedSince(long date)
Determines whether this generator's source files have changed |
abstract boolean |
process(Environment environment)
Constructs a resource for the Environment arguments.
|
abstract boolean |
process(Environment environment,
StreamPipeline pipeline,
EventPipeline eventPipeline)
Constructs a resource for the Environment arguments.
|
static void |
setLogKitManager(org.apache.avalon.excalibur.logger.LogKitManager logkit)
Set the logkit manager |
static void |
setRoleManager(org.apache.avalon.excalibur.component.RoleManager roles,
org.apache.avalon.framework.configuration.Configuration config)
Set the role manager |
protected java.lang.String |
substitute(java.util.List list,
java.lang.String expr,
Environment environment)
Replaces occurences of xpath like expressions in an argument String with content from a List of Maps |
protected boolean |
tryResetResponse(java.util.Map objectModel)
Deprecated. Use the tryResetResponse on the Environment instead. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.avalon.framework.configuration.Configurable |
configure |
Field Detail |
protected CocoonComponentManager manager
protected Manager sitemapManager
protected URLFactory urlFactory
protected long dateCreated
protected DefaultSitemapComponentSelector generators
protected DefaultSitemapComponentSelector transformers
protected DefaultSitemapComponentSelector serializers
protected DefaultSitemapComponentSelector readers
protected DefaultSitemapComponentSelector actions
protected DefaultSitemapComponentSelector matchers
protected DefaultSitemapComponentSelector selectors
protected DefaultSitemapComponentSelector sitemaps
Constructor Detail |
public AbstractSitemap()
Method Detail |
public static void setRoleManager(org.apache.avalon.excalibur.component.RoleManager roles, org.apache.avalon.framework.configuration.Configuration config)
public static void setLogKitManager(org.apache.avalon.excalibur.logger.LogKitManager logkit)
public void compose(org.apache.avalon.framework.component.ComponentManager manager) throws org.apache.avalon.framework.component.ComponentException
ComponentManager
instance used by this
Composable
.compose
in interface org.apache.avalon.framework.component.Composable
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
public org.apache.avalon.framework.component.ComponentManager getComponentManager()
getComponentManager
in interface Sitemap
public final boolean modifiedSince(long date)
modifiedSince
in interface Modifiable
public void load_component(int type, java.lang.Object hint, java.lang.String classURL, org.apache.avalon.framework.configuration.Configuration configuration, java.lang.String mime_type) throws java.lang.Exception
protected boolean invoke(Environment environment, java.lang.String prefix, java.lang.String source, boolean checkReload, boolean reloadAsync, long checkDelay) throws java.lang.Exception
protected boolean invoke(Environment environment, java.lang.String prefix, java.lang.String source, boolean checkReload, boolean reloadAsync, long checkDelay, StreamPipeline pipeline, EventPipeline eventPipeline) throws java.lang.Exception
protected java.lang.String substitute(java.util.List list, java.lang.String expr, Environment environment) throws PatternException, java.lang.NumberFormatException
protected void dumpParameters(java.util.List list)
public abstract boolean process(Environment environment) throws java.lang.Exception
Environment
arguments.
This method is supplied by the generated Sitemap.process
in interface Sitemap
org.apache.cocoon.Processor
true
is returned.
If not match is found in the sitemap false
is returned.ResourceNotFoundException
- If a sitemap component tries
to access a resource which can not
be found, e.g. the generator
ConnectionResetException If the connection was resetpublic abstract boolean process(Environment environment, StreamPipeline pipeline, EventPipeline eventPipeline) throws java.lang.Exception
Environment
arguments.
This method is supplied by the generated Sitemap.process
in interface Sitemap
protected boolean invokeMethod(java.lang.String methodName, java.lang.Class[] argTypes, java.lang.Object[] argValues) throws java.lang.Exception
methodName
- The name of the method to be invokedargTypes
- The array of class types of the method attributesargTypes
- The array of values of the method attributesjava.lang.Exception
- If an error occurs during method invocationpublic void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
protected boolean tryResetResponse(java.util.Map objectModel)
objectModel
- the object model
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |