org.apache.cxf.ws.policy
Class WSPolicyFeature
java.lang.Object
org.apache.cxf.feature.AbstractFeature
org.apache.cxf.ws.policy.WSPolicyFeature
- All Implemented Interfaces:
- Feature
public class WSPolicyFeature
- extends AbstractFeature
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)
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