Package com.sun.xml.ws.xmlfilter
Class EnhancedXmlStreamWriterProxy
- java.lang.Object
-
- com.sun.xml.ws.xmlfilter.EnhancedXmlStreamWriterProxy
-
- All Implemented Interfaces:
InvocationHandler
public final class EnhancedXmlStreamWriterProxy extends Object implements InvocationHandler
The class provides an implementation of anInvocationHandler
interface that handles requests ofXMLStreamWriter
proxy instances. ThisInvocationHandler
implementation adds additional feature or enhancement to the underlyingXMLStreamWriter
instance. The new enhancement or feature is defined by anInvocationProcessor
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XMLStreamWriter
createProxy(XMLStreamWriter writer, InvocationProcessorFactory processorFactory)
Creates a wrapperXMLStreamWriter
proxy that adds enhanced feature to thewriter
instance.Object
invoke(Object proxy, Method method, Object[] args)
-
-
-
Method Detail
-
createProxy
public static XMLStreamWriter createProxy(XMLStreamWriter writer, InvocationProcessorFactory processorFactory) throws XMLStreamException
Creates a wrapperXMLStreamWriter
proxy that adds enhanced feature to thewriter
instance.- Parameters:
writer
-XMLStreamWriter
instance that should be enhanced with content filtering feature.processorFactory
-InvocationProcessorFactory
instance that is used to createInvocationProcessor
which implements new enhancement or feature.- Returns:
- new enhanced {XMLStreamWriter} (proxy) instance
- Throws:
XMLStreamException
- in case of any problems with creating the proxy
-
-