use of org.apache.neethi.Policy in project cxf by apache.
the class ExternalAttachmentProvider method getEffectivePolicy.
public Policy getEffectivePolicy(BindingOperationInfo boi, Message m) {
readDocument();
Policy p = null;
for (PolicyAttachment pa : attachments) {
if (pa.appliesTo(boi)) {
if (p == null) {
p = new Policy();
}
p = p.merge(pa.getPolicy());
}
}
return p;
}
use of org.apache.neethi.Policy in project cxf by apache.
the class ExternalAttachmentProvider method getEffectivePolicy.
public Policy getEffectivePolicy(EndpointInfo ei, Message m) {
readDocument();
Policy p = null;
for (PolicyAttachment pa : attachments) {
if (pa.appliesTo(ei)) {
if (p == null) {
p = new Policy();
}
p = p.merge(pa.getPolicy());
}
}
return p;
}
use of org.apache.neethi.Policy in project cxf by apache.
the class ExternalAttachmentProvider method resolveReference.
Policy resolveReference(PolicyReference ref, Document doc) {
Policy p = null;
if (isExternal(ref)) {
p = resolveExternal(ref, doc.getBaseURI());
} else {
p = resolveLocal(ref, doc);
}
checkResolved(ref, p);
return p;
}
use of org.apache.neethi.Policy in project cxf by apache.
the class ExternalAttachmentProvider method getEffectivePolicy.
public Policy getEffectivePolicy(BindingFaultInfo bfi, Message m) {
readDocument();
Policy p = null;
for (PolicyAttachment pa : attachments) {
if (pa.appliesTo(bfi)) {
if (p == null) {
p = new Policy();
}
p = p.merge(pa.getPolicy());
}
}
return p;
}
use of org.apache.neethi.Policy in project cxf by apache.
the class ExternalAttachmentProvider method getEffectivePolicy.
public Policy getEffectivePolicy(BindingMessageInfo bmi, Message m) {
readDocument();
Policy p = null;
for (PolicyAttachment pa : attachments) {
if (pa.appliesTo(bmi)) {
if (p == null) {
p = new Policy();
}
p = p.merge(pa.getPolicy());
}
}
return p;
}
Aggregations