org.apache.ws.policy.util
Class PolicyFactory
java.lang.Object
org.apache.ws.policy.util.PolicyFactory
- public class PolicyFactory
- extends java.lang.Object
PolicyFactory is used to create PolicyReader / PolicyWriter objects of
different types.
Method Summary |
static PolicyReader |
getPolicyReader(int type)
Creates a specified type of PolicyReader object
DOM_POLICY_READER : Uses DOM as its underlying mechanism to process XML. |
static PolicyWriter |
getPolicyWriter(int type)
Create a specified type of PolicyWriter object
STAX_POLICY_WRITER: 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 |
OM_POLICY_READER
public static final int OM_POLICY_READER
- See Also:
- Constant Field Values
StAX_POLICY_WRITER
public static final int StAX_POLICY_WRITER
- See Also:
- Constant Field Values
DOM_POLICY_READER
public static final int DOM_POLICY_READER
- See Also:
- Constant Field Values
PolicyFactory
public PolicyFactory()
getPolicyReader
public static PolicyReader getPolicyReader(int type)
- Creates a specified type of PolicyReader object
DOM_POLICY_READER : Uses DOM as its underlying mechanism to process XML.
OM_POLICY_READER : Uses AXIOM as its underlying mechanism to process XML.
- Parameters:
type
- of the PolicyReader to create
- Returns:
- an instance of a PolicyReader
getPolicyWriter
public static PolicyWriter getPolicyWriter(int type)
- Create a specified type of PolicyWriter object
STAX_POLICY_WRITER: Uses StAX as its underlying mechanism to create XML
elements.
- Parameters:
type
- of the RolicyWriter to create
- Returns:
- an instance of PolicyWriter
Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.