|
|||||||||||
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.components.blocks.BlockManager
Nested Class Summary |
Nested classes inherited from class org.apache.cocoon.Processor |
Processor.InternalPipelineDescription |
Field Summary | |
static String |
ROLE
|
Fields inherited from interface org.apache.cocoon.components.blocks.Block |
NAME, SUPER |
Constructor Summary | |
BlockManager()
|
Method Summary | |
URI |
absolutizeURI(URI uriToResolve,
URI base)
Takes the scheme specific part of a block URI (the scheme is the responsibilty of the BlockSource) and resolve it with respect to the blocks mount point. |
Processor.InternalPipelineDescription |
buildPipeline(Environment environment)
Process the given Environment to assemble
a ProcessingPipeline .
|
void |
configure(Configuration config)
|
void |
contextualize(Context context)
|
void |
dispose()
|
Object |
getAttribute(String name)
Gets an attribute |
Configuration[] |
getComponentConfigurations()
Get the sitemap component configurations |
String |
getContext()
Get the context URI for this processor |
String |
getMountPath()
Get the mount path of the block |
String |
getProperty(String name)
Get a block property |
Processor |
getRootProcessor()
Get the root processor parent of this processor. |
SourceResolver |
getSourceResolver()
Get the source resolver for this processor |
void |
initialize()
|
boolean |
process(Environment environment)
Process the given Environment producing the output. |
Object |
removeAttribute(String name)
Remove an attribute. |
URI |
resolveURI(URI uri,
URI base)
Parses and resolves the scheme specific part of a block URI with respect to the base URI of the current sitemap. |
void |
service(ServiceManager manager)
|
void |
setAttribute(String name,
Object value)
Sets an attribute |
void |
setBlocksManager(BlocksManager blocksManager)
|
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 |
Field Detail |
public static String ROLE
Constructor Detail |
public BlockManager()
Method Detail |
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void configure(Configuration config) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public void dispose()
dispose
in interface Disposable
public void setBlocksManager(BlocksManager blocksManager)
public String getMountPath()
getMountPath
in interface Block
public String getProperty(String name)
getProperty
in interface Block
public URI absolutizeURI(URI uriToResolve, URI base) throws URISyntaxException
absolutizeURI
in interface Block
URISyntaxException
public URI resolveURI(URI uri, URI base) throws URISyntaxException
foo:/bar
when refering to another block, in this
case only an absolute path is allowed. For reference to the own
block, both absolute /bar
and relative
./foo
paths are allowed.
resolveURI
in interface Block
URISyntaxException
public boolean process(Environment environment) throws Exception
Processor
Environment
producing the output.
process
in interface Processor
true
is returned.
If no match is found in the sitemap false
is returned.
Exception
public Processor.InternalPipelineDescription buildPipeline(Environment environment) throws Exception
Processor
Environment
to assemble
a ProcessingPipeline
.
Don't forget to release the pipeline using
Processor.InternalPipelineDescription.release()
.
buildPipeline
in interface Processor
Exception
public Configuration[] getComponentConfigurations()
Processor
getComponentConfigurations
in interface Processor
public Processor getRootProcessor()
Processor
getRootProcessor
in interface Processor
public SourceResolver getSourceResolver()
Processor
getSourceResolver
in interface Processor
public String getContext()
Processor
getContext
in interface Processor
public Object getAttribute(String name)
Processor
getAttribute
in interface Processor
Processor.getAttribute(java.lang.String)
public Object removeAttribute(String name)
Processor
removeAttribute
in interface Processor
Processor.removeAttribute(java.lang.String)
public void setAttribute(String name, Object value)
Processor
setAttribute
in interface Processor
Processor.setAttribute(java.lang.String, java.lang.Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |