Package org.apache.sling.xss.impl
Class AttributeTranslatingTransformerFactoryImpl
- java.lang.Object
-
- javax.xml.transform.TransformerFactory
-
- javax.xml.transform.sax.SAXTransformerFactory
-
- org.apache.xalan.processor.TransformerFactoryImpl
-
- org.apache.sling.xss.impl.AttributeTranslatingTransformerFactoryImpl
-
public class AttributeTranslatingTransformerFactoryImpl extends org.apache.xalan.processor.TransformerFactoryImpl
Translates configuration calls to specific unsupported attributes to theXMLConstants.FEATURE_SECURE_PROCESSING
featureThis is done in order to support AntiSamy 1.6.4 which requires the usage of a JAXP 1.5 compliant transformer factory, which is Xalan is not. This implementation is minimal and not expected to be used outside of this bundle.
- See Also:
- AntiSamy issue 103
-
-
Field Summary
-
Fields inherited from class org.apache.xalan.processor.TransformerFactoryImpl
FEATURE_INCREMENTAL, FEATURE_OPTIMIZE, FEATURE_SOURCE_LOCATION, XSLT_PROPERTIES
-
Fields inherited from class javax.xml.transform.sax.SAXTransformerFactory
FEATURE, FEATURE_XMLFILTER
-
-
Constructor Summary
Constructors Constructor Description AttributeTranslatingTransformerFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setAttribute(String name, Object value)
-
Methods inherited from class org.apache.xalan.processor.TransformerFactoryImpl
getAssociatedStylesheet, getAttribute, getErrorListener, getFeature, getURIResolver, isSecureProcessing, newTemplates, newTemplatesHandler, newTransformer, newTransformer, newTransformerHandler, newTransformerHandler, newTransformerHandler, newXMLFilter, newXMLFilter, processFromNode, setErrorListener, setFeature, setURIResolver
-
Methods inherited from class javax.xml.transform.TransformerFactory
newDefaultInstance, newInstance, newInstance
-
-
-
-
Method Detail
-
setAttribute
public void setAttribute(String name, Object value) throws IllegalArgumentException
- Overrides:
setAttribute
in classorg.apache.xalan.processor.TransformerFactoryImpl
- Throws:
IllegalArgumentException
-
-