org.apache.ws.policy.util
Class StAXPolicyWriter
java.lang.Object
org.apache.ws.policy.util.StAXPolicyWriter
- All Implemented Interfaces:
- PolicyWriter
- public class StAXPolicyWriter
- extends java.lang.Object
- implements PolicyWriter
StAXPolicyWriter implements PolicyWriter and provides different methods to
create a Policy object. It uses StAX as its underlying mechanism to create
XML elements.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
writePolicy
public void writePolicy(Policy policy,
java.io.OutputStream output)
- Description copied from interface:
PolicyWriter
- Writes a Policy object to an OutputStream.
- Specified by:
writePolicy
in interface PolicyWriter
- Parameters:
policy
- the Policy object to writeoutput
- the OutputStream to which the Policy obect should be written
writePolicy
public void writePolicy(Policy policy,
javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
writePolicyReference
public void writePolicyReference(PolicyReference assertion,
javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.