org.apache.cxf.transport.http.policy.impl
Class ClientPolicyCalculator
java.lang.Object
org.apache.cxf.transport.http.policy.impl.ClientPolicyCalculator
- All Implemented Interfaces:
- PolicyCalculator<HTTPClientPolicy>
public class ClientPolicyCalculator
- extends Object
- implements PolicyCalculator<HTTPClientPolicy>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientPolicyCalculator
public ClientPolicyCalculator()
equals
public boolean equals(HTTPClientPolicy p1,
HTTPClientPolicy p2)
- 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
public HTTPClientPolicy intersect(HTTPClientPolicy p1,
HTTPClientPolicy p2)
- Returns a new HTTPClientPolicy that is compatible with the two specified
policies or null if no compatible policy can be determined.
- Specified by:
intersect
in interface PolicyCalculator<HTTPClientPolicy>
- Parameters:
p1
- one policyp2
- another policy
- Returns:
- the compatible policy
compatible
public boolean compatible(HTTPClientPolicy p1,
HTTPClientPolicy p2)
- 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(Message message,
HTTPClientPolicy policy,
HTTPClientPolicy refPolicy)
- Specified by:
isAsserted
in interface PolicyCalculator<HTTPClientPolicy>
getDataClass
public Class<HTTPClientPolicy> getDataClass()
- Specified by:
getDataClass
in interface PolicyCalculator<HTTPClientPolicy>
getDataClassName
public QName getDataClassName()
- Specified by:
getDataClassName
in interface PolicyCalculator<HTTPClientPolicy>
toString
public static String toString(HTTPClientPolicy p)
Apache CXF