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 anInvocationHandlerinterface that handles requests ofXMLStreamWriterproxy instances.This
InvocationHandlerimplementation adds additional feature or enhancement to the underlyingXMLStreamWriterinstance. The new enhancement or feature is defined by anInvocationProcessorimplementation.The class also contains a static factory method for creating such 'enhanced'
XMLStreamWriterproxies.- Author:
- Marek Potociar (marek.potociar at sun.com)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XMLStreamWritercreateProxy(XMLStreamWriter writer, InvocationProcessorFactory processorFactory)Creates a wrapperXMLStreamWriterproxy that adds enhanced feature to thewriterinstance.Objectinvoke(Object proxy, Method method, Object[] args)
-
-
-
Method Detail
-
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
-
-