Class ClientPolicyCalculator
java.lang.Object
org.apache.cxf.transport.http.policy.impl.ClientPolicyCalculator
- All Implemented Interfaces:
org.apache.cxf.policy.PolicyCalculator<HTTPClientPolicy>
public class ClientPolicyCalculator
extends Object
implements org.apache.cxf.policy.PolicyCalculator<HTTPClientPolicy>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if two HTTPClientPolicy objects are compatible.booleanequals(HTTPClientPolicy p1, HTTPClientPolicy p2) Determines if two HTTPClientPolicy objects are equal.Returns a new HTTPClientPolicy that is compatible with the two specified policies or null if no compatible policy can be determined.booleanisAsserted(org.apache.cxf.message.Message message, HTTPClientPolicy policy, HTTPClientPolicy refPolicy) static String
-
Constructor Details
-
ClientPolicyCalculator
public ClientPolicyCalculator()
-
-
Method Details
-
equals
Determines if two HTTPClientPolicy objects are equal. REVISIT: Check if this can be replaced by a generated equals method.- Parameters:
p1- one client policyp2- another client policy- Returns:
- true iff the two policies are equal
-
intersect
Returns a new HTTPClientPolicy that is compatible with the two specified policies or null if no compatible policy can be determined.- Specified by:
intersectin interfaceorg.apache.cxf.policy.PolicyCalculator<HTTPClientPolicy>- Parameters:
p1- one policyp2- another policy- Returns:
- the compatible policy
-
compatible
Checks if two HTTPClientPolicy objects are compatible.- Parameters:
p1- one client policyp2- another client policy- Returns:
- true iff policies are compatible
-
isAsserted
public boolean isAsserted(org.apache.cxf.message.Message message, HTTPClientPolicy policy, HTTPClientPolicy refPolicy) - Specified by:
isAssertedin interfaceorg.apache.cxf.policy.PolicyCalculator<HTTPClientPolicy>
-
getDataClass
- Specified by:
getDataClassin interfaceorg.apache.cxf.policy.PolicyCalculator<HTTPClientPolicy>
-
getDataClassName
- Specified by:
getDataClassNamein interfaceorg.apache.cxf.policy.PolicyCalculator<HTTPClientPolicy>
-
toString
-