Apache CXF API

org.apache.cxf.ws.policy
Class PolicyBuilderImpl

java.lang.Object
  extended by org.apache.cxf.ws.policy.PolicyBuilderImpl
All Implemented Interfaces:
BusExtension, PolicyBuilder

public class PolicyBuilderImpl
extends java.lang.Object
implements PolicyBuilder, BusExtension

PolicyBuilderImpl is an implementation of the PolicyBuilder interface, provides methods to create Policy and PolicyReferenceObjects from DOM elements, but also from an input stream etc.


Constructor Summary
PolicyBuilderImpl()
           
 
Method Summary
 AssertionBuilderRegistry getAssertionBuilderRegistry()
           
 Bus getBus()
           
 org.apache.neethi.Policy getPolicy(org.w3c.dom.Element element)
          Creates a Policy object from a DOM element.
 org.apache.neethi.Policy getPolicy(java.io.InputStream is)
          Creates a Policy object from an InputStream.
 org.apache.neethi.PolicyReference getPolicyReference(org.w3c.dom.Element element)
          Creates a PolicyReference object from a DOM element.
 org.apache.neethi.PolicyReference getPolicyReference(java.io.InputStream is)
          Creates a PolicyReference object from an InputStream.
 java.lang.Class<?> getRegistrationType()
           
 void setAssertionBuilderRegistry(AssertionBuilderRegistry abr)
           
 void setBus(Bus theBus)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyBuilderImpl

public PolicyBuilderImpl()
Method Detail

getRegistrationType

public java.lang.Class<?> getRegistrationType()
Specified by:
getRegistrationType in interface BusExtension

setBus

public void setBus(Bus theBus)

getBus

public Bus getBus()

setAssertionBuilderRegistry

public void setAssertionBuilderRegistry(AssertionBuilderRegistry abr)

getAssertionBuilderRegistry

public AssertionBuilderRegistry getAssertionBuilderRegistry()

getPolicyReference

public org.apache.neethi.PolicyReference getPolicyReference(java.io.InputStream is)
                                                     throws java.io.IOException,
                                                            javax.xml.parsers.ParserConfigurationException,
                                                            org.xml.sax.SAXException
Creates a PolicyReference object from an InputStream.

Parameters:
inputStream - the input stream
Returns:
the PolicyReference constructed from the input stream
Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

getPolicyReference

public org.apache.neethi.PolicyReference getPolicyReference(org.w3c.dom.Element element)
Creates a PolicyReference object from a DOM element.

Specified by:
getPolicyReference in interface PolicyBuilder
Parameters:
element - the element
Returns:
the PolicyReference object constructed from the element

getPolicy

public org.apache.neethi.Policy getPolicy(java.io.InputStream is)
                                   throws java.io.IOException,
                                          javax.xml.parsers.ParserConfigurationException,
                                          org.xml.sax.SAXException
Creates a Policy object from an InputStream.

Parameters:
inputStream - the input stream
Returns:
the Policy object constructed from the input stream
Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

getPolicy

public org.apache.neethi.Policy getPolicy(org.w3c.dom.Element element)
Creates a Policy object from a DOM element.

Specified by:
getPolicy in interface PolicyBuilder
Parameters:
element - the element
Returns:
the Policy object constructed from the element

Apache CXF API

Apache CXF