|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cyberneko.html.filters.DefaultFilter com.atlassian.confluence.content.render.xhtml.XmlAttributeEncodingFilter
public class XmlAttributeEncodingFilter
A Cyberneko filter to cope with a common mistake made by plugin developers in Confluence. Attribute values should be HTML encoded so values such as URLs with multiple query parameters (e.g. http://www.example.org?name=bob&hat=bowler) should have the ampersand encoded. If it isn't then a STAX parser will thing that &hat is a malformed entity definition.
Field Summary |
---|
Fields inherited from class org.cyberneko.html.filters.DefaultFilter |
---|
fDocumentHandler, fDocumentSource |
Constructor Summary | |
---|---|
XmlAttributeEncodingFilter()
|
Method Summary | |
---|---|
void |
emptyElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attributes,
org.apache.xerces.xni.Augmentations augs)
|
void |
startElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attributes,
org.apache.xerces.xni.Augmentations augs)
|
Methods inherited from class org.cyberneko.html.filters.DefaultFilter |
---|
characters, comment, doctypeDecl, endCDATA, endDocument, endElement, endGeneralEntity, endPrefixMapping, getDocumentHandler, getDocumentSource, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, ignorableWhitespace, merge, processingInstruction, reset, setDocumentHandler, setDocumentSource, setFeature, setProperty, startCDATA, startDocument, startDocument, startGeneralEntity, startPrefixMapping, textDecl, xmlDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlAttributeEncodingFilter()
Method Detail |
---|
public void startElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
startElement
in interface org.apache.xerces.xni.XMLDocumentHandler
startElement
in class org.cyberneko.html.filters.DefaultFilter
org.apache.xerces.xni.XNIException
public void emptyElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
emptyElement
in interface org.apache.xerces.xni.XMLDocumentHandler
emptyElement
in class org.cyberneko.html.filters.DefaultFilter
org.apache.xerces.xni.XNIException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |