|
|||||||||||
| 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 ServiceableServiceException
public void contextualize(Context context)
throws ContextException
contextualize in interface ContextualizableContextException
public void configure(Configuration config)
throws ConfigurationException
configure in interface ConfigurableConfigurationException
public void initialize()
throws Exception
initialize in interface InitializableExceptionpublic void dispose()
dispose in interface Disposablepublic void setBlocksManager(BlocksManager blocksManager)
public String getMountPath()
getMountPath in interface Blockpublic String getProperty(String name)
getProperty in interface Block
public URI absolutizeURI(URI uriToResolve,
URI base)
throws URISyntaxException
absolutizeURI in interface BlockURISyntaxException
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 BlockURISyntaxException
public boolean process(Environment environment)
throws Exception
ProcessorEnvironment producing the output.
process in interface Processortrue is returned.
If no match is found in the sitemap false
is returned.
Exception
public Processor.InternalPipelineDescription buildPipeline(Environment environment)
throws Exception
ProcessorEnvironment to assemble
a ProcessingPipeline.
Don't forget to release the pipeline using
Processor.InternalPipelineDescription.release().
buildPipeline in interface ProcessorExceptionpublic Configuration[] getComponentConfigurations()
Processor
getComponentConfigurations in interface Processorpublic Processor getRootProcessor()
Processor
getRootProcessor in interface Processorpublic SourceResolver getSourceResolver()
Processor
getSourceResolver in interface Processorpublic String getContext()
Processor
getContext in interface Processorpublic Object getAttribute(String name)
Processor
getAttribute in interface ProcessorProcessor.getAttribute(java.lang.String)public Object removeAttribute(String name)
Processor
removeAttribute in interface ProcessorProcessor.removeAttribute(java.lang.String)
public void setAttribute(String name,
Object value)
Processor
setAttribute in interface ProcessorProcessor.setAttribute(java.lang.String, java.lang.Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||