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 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
| 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)
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 java.util.Collection<org.apache.neethi.Policy> getPolicies()
setPolicies
public void setPolicies(java.util.Collection<org.apache.neethi.Policy> policies)
getPolicyElements
public java.util.Collection<org.w3c.dom.Element> getPolicyElements()
setPolicyElements
public void setPolicyElements(java.util.Collection<org.w3c.dom.Element> elements)
getPolicyReferenceElements
public java.util.Collection<org.w3c.dom.Element> getPolicyReferenceElements()
setPolicyReferenceElements
public void setPolicyReferenceElements(java.util.Collection<org.w3c.dom.Element> elements)
setIgnoreUnknownAssertions
public void setIgnoreUnknownAssertions(boolean ignore)
setNamespace
public void setNamespace(java.lang.String ns)
setAlternativeSelector
public void setAlternativeSelector(AlternativeSelector as)
resolveExternal
protected org.apache.neethi.Policy resolveExternal(org.apache.neethi.PolicyReference ref,
java.lang.String baseURI,
Bus bus)
Apache CXF is an effort undergoing incubation at the Apache Software Foundation(ASF) and sponsored by the Apache Incubator PMC.