Apache CXF API

org.apache.cxf.ws.policy
Class WSPolicyFeature

java.lang.Object
  extended by org.apache.cxf.feature.AbstractFeature
      extended by org.apache.cxf.ws.policy.WSPolicyFeature
All Implemented Interfaces:
Feature, org.springframework.context.ApplicationContextAware

public class WSPolicyFeature
extends AbstractFeature
implements org.springframework.context.ApplicationContextAware

Configures a Server, Client, Bus with the specified policies. If a series of Policy Elements are supplied, these will be loaded into a Policy class using the PolicyBuilder extension on the bus. If the PolicyEngine has not been started, this feature will start it.

See Also:
PolicyBuilder, AbstractFeature

Constructor Summary
WSPolicyFeature()
           
WSPolicyFeature(org.apache.neethi.Policy... ps)
           
 
Method Summary
 Collection<org.apache.neethi.Policy> getPolicies()
           
 Collection<Element> getPolicyElements()
           
 Collection<Element> getPolicyReferenceElements()
           
 void initialize(Bus bus)
           
 void initialize(Client client, Bus bus)
           
 void initialize(Server server, Bus bus)
           
 boolean isEnabled()
           
protected  org.apache.neethi.Policy resolveExternal(org.apache.neethi.PolicyReference ref, String baseURI, Bus bus)
           
 void setAlternativeSelector(AlternativeSelector as)
           
 void setApplicationContext(org.springframework.context.ApplicationContext c)
           
 void setEnabled(boolean enabled)
           
 void setIgnoreUnknownAssertions(boolean ignore)
           
 void setPolicies(Collection<org.apache.neethi.Policy> policies)
           
 void setPolicyElements(Collection<Element> elements)
           
 void setPolicyReferenceElements(Collection<Element> elements)
           
 
Methods inherited from class org.apache.cxf.feature.AbstractFeature
getActive, initialize, initializeProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSPolicyFeature

public WSPolicyFeature()

WSPolicyFeature

public WSPolicyFeature(org.apache.neethi.Policy... ps)
Method Detail

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext c)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

initialize

public void initialize(Bus bus)
Specified by:
initialize in interface Feature
Overrides:
initialize in class AbstractFeature

initialize

public void initialize(Client client,
                       Bus bus)
Specified by:
initialize in interface Feature
Overrides:
initialize in class AbstractFeature

initialize

public void initialize(Server server,
                       Bus bus)
Specified by:
initialize in interface Feature
Overrides:
initialize in class AbstractFeature

getPolicies

public Collection<org.apache.neethi.Policy> getPolicies()

setPolicies

public void setPolicies(Collection<org.apache.neethi.Policy> policies)

getPolicyElements

public Collection<Element> getPolicyElements()

setPolicyElements

public void setPolicyElements(Collection<Element> elements)

getPolicyReferenceElements

public Collection<Element> getPolicyReferenceElements()

setPolicyReferenceElements

public void setPolicyReferenceElements(Collection<Element> elements)

setIgnoreUnknownAssertions

public void setIgnoreUnknownAssertions(boolean ignore)

setAlternativeSelector

public void setAlternativeSelector(AlternativeSelector as)

resolveExternal

protected org.apache.neethi.Policy resolveExternal(org.apache.neethi.PolicyReference ref,
                                                   String baseURI,
                                                   Bus bus)

Apache CXF API

Apache CXF