You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Andrei Shakirin <as...@talend.com> on 2013/09/25 15:14:52 UTC
Policy Assertor in HTTPConduit
Hi,
Looking into HTTPConduit assertor interface implementation:
public boolean canAssert(QName type) {
return new ClientPolicyCalculator().equals(type);
}
ClientPolicyCalculator.java contains only:
public boolean equals(HTTPClientPolicy p1, HTTPClientPolicy p2)
so it doesn't override boolean Object.equals(Object)
That means new ClientPolicyCalculator().equals(type) always returns false.
Am I missing something?
As I understand Assertor is used for transport specific assertions in WS-Policy and is checked in PolicyEngineImpl.supportsAlternative():
...
if (!(a.isOptional()
|| !pipr.get(a.getName()).isEmpty()
|| (null != assertor && assertor.canAssert(a.getName())))) {
...
Assertor interface is implemented by HTTPConduit and AbstractHTTPDestination.
But I am not sure that this check really works now for HTTPConduit.
Regards,
Andrei.