com.sun.xml.ws.policy.jaxws.xmlstreamwriter
Class EnhancedXmlStreamWriterProxy
java.lang.Object
com.sun.xml.ws.policy.jaxws.xmlstreamwriter.EnhancedXmlStreamWriterProxy
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public final class EnhancedXmlStreamWriterProxy
- extends java.lang.Object
- implements java.lang.reflect.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.
Method Summary |
static javax.xml.stream.XMLStreamWriter |
createProxy(javax.xml.stream.XMLStreamWriter writer,
InvocationProcessorFactory processorFactory)
Creates a wrapper XMLStreamWriter proxy that adds enhanced feature
to the writer instance. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createProxy
public static javax.xml.stream.XMLStreamWriter createProxy(javax.xml.stream.XMLStreamWriter writer,
InvocationProcessorFactory processorFactory)
throws javax.xml.stream.XMLStreamException
- Creates a wrapper
XMLStreamWriter
proxy that adds enhanced feature
to the writer
instance.
- Parameters:
writer
- XMLStreamWriter
instance that should be enhanced with
content filtering feature.processorFactory
- InvocationProcessorFactory
instance that
is used to create InvocationProcessor
which implements new enhancement
or feature.
- Returns:
- new enhanced {XMLStreamWriter} (proxy) instance
- Throws:
javax.xml.stream.XMLStreamException
- in case of any problems with creating the proxy
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable