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.
|
manager
objectModel, parameters, resolver, source
contentHandler, 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) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected SourceResolver _resolver
protected ContentFilterHelper _filterHelper
public AbstractEventGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public 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.