|
||||||||||
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.xml.AbstractXMLPipe org.apache.cocoon.transformation.AbstractTransformer org.apache.cocoon.transformation.AbstractSAXTransformer org.apache.cocoon.transformation.CIncludeTransformer
public class CIncludeTransformer
Fields inherited from class org.apache.cocoon.transformation.AbstractSAXTransformer |
---|
context, defaultNamespaceURI, EMPTY_ATTRIBUTES, emptyAttributes, ignoreEmptyCharacters, ignoreEventsCount, ignoreHooksCount, ignoreWhitespaces, manager, namespaceURI, objectModel, parameters, recorderStack, request, resolver, response, source, stack |
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
---|
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
Fields inherited from interface org.apache.cocoon.transformation.Transformer |
---|
ROLE |
Constructor Summary | |
---|---|
CIncludeTransformer()
Constructor Set the namespace |
Method Summary | |
---|---|
void |
dispose()
|
protected Object |
endCompiledXMLRecording()
Stop recording of compiled XML. |
void |
endDocument()
Process the SAX event. |
void |
endTransformingElement(String uri,
String name,
String raw)
Start processing elements of our namespace. |
Serializable |
getKey()
Generate the unique key. |
SourceValidity |
getValidity()
Generate the validity object. |
protected String |
processCIncludeElement(String src,
String element,
String select,
String ns,
String prefix,
boolean stripRoot,
boolean cache)
|
void |
recycle()
Recycle the component |
void |
service(ServiceManager manager)
|
void |
setup(SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters)
Setup the component. |
protected void |
startCompiledXMLRecording()
Start recording of compiled xml. |
void |
startDocument()
Process the SAX event. |
void |
startTransformingElement(String uri,
String name,
String raw,
Attributes attr)
Start processing elements of our namespace. |
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 |
---|
public static final String CINCLUDE_NAMESPACE_URI
public static final String CINCLUDE_INCLUDE_ELEMENT
public static final String CINCLUDE_INCLUDE_ELEMENT_SRC_ATTRIBUTE
public static final String CINCLUDE_INCLUDE_ELEMENT_ELEMENT_ATTRIBUTE
public static final String CINCLUDE_INCLUDE_ELEMENT_SELECT_ATTRIBUTE
public static final String CINCLUDE_INCLUDE_ELEMENT_NS_ATTRIBUTE
public static final String CINCLUDE_INCLUDE_ELEMENT_PREFIX_ATTRIBUTE
public static final String CINCLUDE_INCLUDE_ELEMENT_STRIP_ROOT_ATTRIBUTE
public static final String CINCLUDE_INCLUDEXML_ELEMENT
public static final String CINCLUDE_INCLUDEXML_ELEMENT_IGNORE_ERRORS_ATTRIBUTE
public static final String CINCLUDE_SRC_ELEMENT
public static final String CINCLUDE_CONFIGURATION_ELEMENT
public static final String CINCLUDE_PARAMETERS_ELEMENT
public static final String CINCLUDE_PARAMETER_ELEMENT
public static final String CINCLUDE_NAME_ELEMENT
public static final String CINCLUDE_VALUE_ELEMENT
public static final String CINCLUDE_CACHED_INCLUDE_ELEMENT
protected static final String CINCLUDE_CACHED_INCLUDE_PLACEHOLDER_ELEMENT
protected Parameters configurationParameters
protected SourceParameters resourceParameters
protected int state
protected IncludeCacheManager cacheManager
protected IncludeCacheManagerSession cachingSession
protected boolean compiling
protected IncludeXMLConsumer filter
protected XMLSerializer recorder
protected AttributesImpl srcAttributes
protected boolean supportCaching
protected long startTime
Constructor Detail |
---|
public CIncludeTransformer()
Method Detail |
---|
public void setup(SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws ProcessingException, SAXException, IOException
setup
in interface SitemapModelComponent
setup
in class AbstractSAXTransformer
ProcessingException
SAXException
IOException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractSAXTransformer
ServiceException
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
public void dispose()
dispose
in interface Disposable
dispose
in class AbstractSAXTransformer
Disposable.dispose()
public void recycle()
recycle
in interface Recyclable
recycle
in class AbstractSAXTransformer
public void startTransformingElement(String uri, String name, String raw, Attributes attr) throws ProcessingException, IOException, SAXException
AbstractSAXTransformer
startTransformingElement
in class AbstractSAXTransformer
uri
- The namespace of the element.name
- The local name of the element.raw
- The qualified name of the element.attr
- The attributes of the element.
ProcessingException
IOException
SAXException
public void endTransformingElement(String uri, String name, String raw) throws ProcessingException, IOException, SAXException
AbstractSAXTransformer
endTransformingElement
in class AbstractSAXTransformer
uri
- The namespace of the element.name
- The local name of the element.raw
- The qualified name of the element.
ProcessingException
IOException
SAXException
protected String processCIncludeElement(String src, String element, String select, String ns, String prefix, boolean stripRoot, boolean cache) throws SAXException, IOException
SAXException
IOException
protected void startCompiledXMLRecording() throws SAXException
SAXException
protected Object endCompiledXMLRecording() throws SAXException
SAXException
public void startDocument() throws SAXException
AbstractSAXTransformer
AbstractSAXTransformer.setupTransforming()
is invoked.
startDocument
in interface ContentHandler
startDocument
in class AbstractSAXTransformer
SAXException
ContentHandler.startDocument()
public void endDocument() throws SAXException
AbstractSAXTransformer
endDocument
in interface ContentHandler
endDocument
in class AbstractSAXTransformer
SAXException
ContentHandler.endDocument()
public Serializable getKey()
CacheableProcessingComponent
getKey
in interface CacheableProcessingComponent
null
if the component
is currently not cacheable.CacheableProcessingComponent.getKey()
public SourceValidity getValidity()
CacheableProcessingComponent
getValidity
in interface CacheableProcessingComponent
null
if the
component is currently not cacheable.CacheableProcessingComponent.getValidity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |