|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.xml.AbstractXMLProducer org.apache.cocoon.generation.AbstractGenerator org.apache.cocoon.generation.ComposerGenerator org.apache.cocoon.generation.ServletGenerator org.apache.cocoon.generation.ServerPagesGenerator
public class ServerPagesGenerator
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).
Nested Class Summary | |
---|---|
class |
ServerPagesGenerator.CompletionPipe
|
Field Summary | |
---|---|
static String |
DEFAULT_MARKUP_LANGUAGE
The default MarkupLanguage |
static String |
DEFAULT_PROGRAMMING_LANGUAGE
The default ProgrammingLanguage |
protected AbstractServerPage |
generator
|
protected String |
markupLanguage
The loaded generator's MarkupLanguage |
protected ProgramGenerator |
programGenerator
The sitemap-defined server pages program generator |
protected String |
programmingLanguage
The loaded generator's ProgrammingLanguage |
Fields inherited from class org.apache.cocoon.generation.ServletGenerator |
---|
context, request, response |
Fields inherited from class org.apache.cocoon.generation.ComposerGenerator |
---|
manager |
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator |
---|
objectModel, parameters, resolver, source |
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
---|
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
Fields inherited from interface org.apache.cocoon.generation.Generator |
---|
ROLE |
Constructor Summary | |
---|---|
ServerPagesGenerator()
|
Method Summary | |
---|---|
void |
compose(ComponentManager manager)
Set the global component manager. |
void |
configure(Configuration config)
|
void |
dispose()
dispose |
void |
generate()
Generate XML data. |
Serializable |
getKey()
Generate the unique key. |
SourceValidity |
getValidity()
Generate the validity object. |
void |
recycle()
Recycle the generator by removing references |
void |
setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
Set the SourceResolver , object model Map ,
the source and sitemap Parameters used to process the request. |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
---|
setConsumer, setContentHandler, setLexicalHandler |
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 |
Methods inherited from interface org.apache.cocoon.xml.XMLProducer |
---|
setConsumer |
Field Detail |
---|
protected ProgramGenerator programGenerator
protected AbstractServerPage generator
protected String markupLanguage
MarkupLanguage
protected String programmingLanguage
ProgrammingLanguage
public static final String DEFAULT_MARKUP_LANGUAGE
MarkupLanguage
public static final String DEFAULT_PROGRAMMING_LANGUAGE
ProgrammingLanguage
Constructor Detail |
---|
public ServerPagesGenerator()
Method Detail |
---|
public void compose(ComponentManager manager) throws ComponentException
compose
in interface Composable
compose
in class ComposerGenerator
manager
- The global component manager
ComponentException
public void configure(Configuration config) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public Serializable getKey()
getKey
in interface CacheableProcessingComponent
null
if the component
is currently not cacheable.public SourceValidity getValidity()
getValidity
in interface CacheableProcessingComponent
null
if the
component is currently not cacheable.public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException
AbstractGenerator
SourceResolver
, object model Map
,
the source and sitemap Parameters
used to process the request.
setup
in interface SitemapModelComponent
setup
in class ServletGenerator
ProcessingException
SAXException
IOException
public void generate() throws IOException, SAXException, ProcessingException
generate
in interface Generator
IOException
- IO Error
SAXException
- SAX event generation error
ProcessingException
- Error during load/executionpublic void recycle()
recycle
in interface Recyclable
recycle
in class ServletGenerator
public void dispose()
dispose
in interface Disposable
dispose
in class ComposerGenerator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |