Package com.sun.xml.ws.xmlfilter
Class EnhancedXmlStreamWriterProxy
java.lang.Object
com.sun.xml.ws.xmlfilter.EnhancedXmlStreamWriterProxy
- All Implemented Interfaces:
InvocationHandler
The class provides an implementation of an
InvocationHandler interface
that handles requests of XMLStreamWriter proxy instances.
This InvocationHandler implementation adds additional feature or enhancement
to the underlying XMLStreamWriter instance. The new enhancement or feature is
defined by an InvocationProcessor implementation.
The class also contains a static factory method for creating such 'enhanced'
XMLStreamWriter proxies.
- Author:
- Marek Potociar (marek.potociar at sun.com)
-
Method Summary
Modifier and TypeMethodDescriptionstatic XMLStreamWritercreateProxy(XMLStreamWriter writer, InvocationProcessorFactory processorFactory) Creates a wrapperXMLStreamWriterproxy that adds enhanced feature to thewriterinstance.
-
Method Details
-
createProxy
public static XMLStreamWriter createProxy(XMLStreamWriter writer, InvocationProcessorFactory processorFactory) throws XMLStreamException Creates a wrapperXMLStreamWriterproxy that adds enhanced feature to thewriterinstance.- Parameters:
writer-XMLStreamWriterinstance that should be enhanced with content filtering feature.processorFactory-InvocationProcessorFactoryinstance that is used to createInvocationProcessorwhich implements new enhancement or feature.- Returns:
- new enhanced {XMLStreamWriter} (proxy) instance
- Throws:
XMLStreamException- in case of any problems with creating the proxy
-
invoke
- Specified by:
invokein interfaceInvocationHandler
-