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 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(Element element)
          Creates a Policy object from a DOM element.
 org.apache.neethi.Policy getPolicy(InputStream is)
          Creates a Policy object from an InputStream.
 org.apache.neethi.PolicyReference getPolicyReference(Element element)
          Creates a PolicyReference object from a DOM element.
 org.apache.neethi.PolicyReference getPolicyReference(InputStream is)
          Creates a PolicyReference object from an InputStream.
 org.apache.neethi.PolicyRegistry getPolicyRegistry()
          Return the PolicyRegistry associated with the builder
 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 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(InputStream is)
                                                     throws IOException,
                                                            ParserConfigurationException,
                                                            SAXException
Creates a PolicyReference object from an InputStream.

Parameters:
inputStream - the input stream
Returns:
the PolicyReference constructed from the input stream
Throws:
IOException
ParserConfigurationException
SAXException

getPolicyReference

public org.apache.neethi.PolicyReference getPolicyReference(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(InputStream is)
                                   throws IOException,
                                          ParserConfigurationException,
                                          SAXException
Creates a Policy object from an InputStream.

Specified by:
getPolicy in interface PolicyBuilder
Parameters:
inputStream - the input stream
Returns:
the Policy object constructed from the input stream
Throws:
IOException
ParserConfigurationException
SAXException

getPolicy

public org.apache.neethi.Policy getPolicy(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

getPolicyRegistry

public org.apache.neethi.PolicyRegistry getPolicyRegistry()
Description copied from interface: PolicyBuilder
Return the PolicyRegistry associated with the builder

Specified by:
getPolicyRegistry in interface PolicyBuilder
Returns:
the PolicyRegistry

Apache CXF API

Apache CXF