|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
org.jasig.portal.layout.dlm.processing.ExampleBookmarksRemover
public class ExampleBookmarksRemover
A sample processor that strips all SAX events related to the Bookmarks channel from the SAX stream representing the user's layout to portray how an implementation of ISaxProcessor can affect the SAX event stream by removing, changing, or injecting events. This is accomplished by watching for a channel with a "name" attributed of "Bookmarks".
| Constructor Summary | |
|---|---|
ExampleBookmarksRemover()
|
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Handle character content by stripping character events if they are nested within the Bookmarks channel's events. |
void |
endElement(String uri,
String localName,
String qName)
Watches for the end of events of the Bookmarks channel stripping out those nested within and passing those that are without. |
String |
getCacheKey()
Return a suitable cache key indicative of the SAX event stream passing through this class. |
ContentHandler |
getContentHandler(ContentHandler handler)
Returns this class wrapping the passed-in ContentHandler to which events are pushed. |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
Watches for the start of events related to a Bookmarks channel and strips off all starting events for elements nested within while passing all those that are without. |
| Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
|---|
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExampleBookmarksRemover()
| Method Detail |
|---|
public String getCacheKey()
getCacheKey in interface ISaxProcessorProcessingPipe.getCacheKey()
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class XMLFilterImplSAXException
public void endElement(String uri,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerendElement in class XMLFilterImplSAXException
public void startElement(String uri,
String localName,
String qName,
Attributes atts)
throws SAXException
startElement in interface ContentHandlerstartElement in class XMLFilterImplSAXExceptionpublic ContentHandler getContentHandler(ContentHandler handler)
getContentHandler in interface ISaxProcessorISaxProcessor.getContentHandler(org.xml.sax.ContentHandler)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||