| org.apache.cocoon.generation.AbstractGenerator org.apache.cocoon.generation.ComposerGenerator org.apache.cocoon.generation.ServletGenerator org.apache.cocoon.generation.ServerPagesGenerator
ServerPagesGenerator | public class ServerPagesGenerator extends ServletGenerator implements CacheableProcessingComponent,Configurable(Code) | | This class acts as a proxy to a dynamically loadedGenerator
delegating actual SAX event generation.
It has a single configuration item :
<autocomplete-documents>true|false<autocomplete-documents>
(default is false ).
This tells the generator to automatically close all elements that weren't properly closed
by the XSP, such as when a return statement is used to prematurely end
processing. Activating this feature sensibly increases CPU-usage and should
therefore be used only if really needed (it's better to have clean XSP pages that don't
break abruptly generation flow).
author: Ricardo Rocha author: Sylvain Wallez version: $Id: ServerPagesGenerator.java 433543 2006-08-22 06:22:54Z crossley $ |
DEFAULT_MARKUP_LANGUAGE | final public static String DEFAULT_MARKUP_LANGUAGE(Code) | | The default MarkupLanguage
|
DEFAULT_PROGRAMMING_LANGUAGE | final public static String DEFAULT_PROGRAMMING_LANGUAGE(Code) | | The default ProgrammingLanguage
|
markupLanguage | protected String markupLanguage(Code) | | The loaded generator's MarkupLanguage
|
programGenerator | protected ProgramGenerator programGenerator(Code) | | The sitemap-defined server pages program generator
|
programmingLanguage | protected String programmingLanguage(Code) | | The loaded generator's ProgrammingLanguage
|
compose | public void compose(ComponentManager manager) throws ComponentException(Code) | | Set the global component manager. This method sets the sitemap-defined
program generator
Parameters: manager - The global component manager |
configure | public void configure(Configuration config) throws ConfigurationException(Code) | | |
dispose | public void dispose()(Code) | | dispose
|
generate | public void generate() throws IOException, SAXException, ProcessingException(Code) | | Generate XML data. This method loads a server pages generator associated
with its (file) input source and delegates SAX event generator to it
taking care of "closing" any event left open by the loaded generator as a
result of its possible "premature" return (a common situation in server
pages)
exception: IOException - IO Error exception: SAXException - SAX event generation error exception: ProcessingException - Error during load/execution |
getKey | public Serializable getKey()(Code) | | Generate the unique key.
This key must be unique inside the space of this component.
This method must be invoked before the generateValidity() method.
The generated key or null if the componentis currently not cacheable. |
getValidity | public SourceValidity getValidity()(Code) | | Generate the validity object.
Before this method can be invoked the generateKey() method
must be invoked.
The generated validity object or null if thecomponent is currently not cacheable. |
recycle | public void recycle()(Code) | | Recycle the generator by removing references
|
Fields inherited from org.apache.cocoon.generation.ComposerGenerator | protected ComponentManager manager(Code)(Java Doc)
|
Methods inherited from org.apache.cocoon.generation.ComposerGenerator | public void compose(ComponentManager manager) throws ComponentException(Code)(Java Doc) public void dispose()(Code)(Java Doc)
|
|
|