org.apache.cxf.ws.policy
Class WSPolicyFeature
java.lang.Object
org.apache.cxf.feature.AbstractFeature
org.apache.cxf.ws.policy.WSPolicyFeature
- All Implemented Interfaces:
- 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 Element
s 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSPolicyFeature
public WSPolicyFeature()
WSPolicyFeature
public WSPolicyFeature(org.apache.neethi.Policy... ps)
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)
- Overrides:
initialize
in class AbstractFeature
initialize
public void initialize(Client client,
Bus bus)
- Overrides:
initialize
in class AbstractFeature
initialize
public void initialize(Server server,
Bus bus)
- 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