public abstract class AbstractEventGenerator extends ServiceableGenerator
| Modifier and Type | Field and Description |
|---|---|
protected ContentFilterHelper |
_filterHelper
The content filter helper.
|
protected SourceResolver |
_resolver
The source resolver.
|
managerobjectModel, parameters, resolver, sourcecontentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer| Constructor and Description |
|---|
AbstractEventGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
saxContent(ContentHandler handler,
Content content,
boolean saxContentItSelf,
WebContentFilter filter,
boolean checkUserAccess)
SAX a content
|
void |
saxXMLContent(ContentHandler handler,
Content content,
String metadataSetName)
SAX a content in XML mode.
|
void |
service(ServiceManager serviceManager) |
disposerecycle, setupsetConsumer, setContentHandler, setLexicalHandlerenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetConsumerprotected SourceResolver _resolver
protected ContentFilterHelper _filterHelper
public AbstractEventGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class ServiceableGeneratorServiceExceptionpublic void saxContent(ContentHandler handler, Content content, boolean saxContentItSelf, WebContentFilter filter, boolean checkUserAccess) throws SAXException, IOException
handler - The content handler to SAX intocontent - The content.saxContentItSelf - true to sax the content, false will only sax some metafilter - The filter. Can be null if saxContentItSelf is falsecheckUserAccess - True to check user access when saxing the content itselfSAXException - If an error occurs while SAXingIOException - If an error occurs while retrieving content.public void saxXMLContent(ContentHandler handler, Content content, String metadataSetName) throws SAXException, IOException
handler - The content handler to SAX intocontent - The content to SAXmetadataSetName - The metadata set to useSAXException - If an error occurs while SAXingIOException - If an error occurs while retrieving content.