Apache CXF API

org.apache.cxf.transport.http.policy.impl
Class ClientPolicyCalculator

java.lang.Object
  extended by org.apache.cxf.transport.http.policy.impl.ClientPolicyCalculator
All Implemented Interfaces:
PolicyCalculator<HTTPClientPolicy>

public class ClientPolicyCalculator
extends Object
implements PolicyCalculator<HTTPClientPolicy>


Constructor Summary
ClientPolicyCalculator()
           
 
Method Summary
 boolean compatible(HTTPClientPolicy p1, HTTPClientPolicy p2)
          Checks if two HTTPClientPolicy objects are compatible.
 boolean equals(HTTPClientPolicy p1, HTTPClientPolicy p2)
          Determines if two HTTPClientPolicy objects are equal.
 Class<HTTPClientPolicy> getDataClass()
           
 QName getDataClassName()
           
 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.
 boolean isAsserted(Message message, HTTPClientPolicy policy, HTTPClientPolicy refPolicy)
           
static String toString(HTTPClientPolicy p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientPolicyCalculator

public ClientPolicyCalculator()
Method Detail

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 policy
p2 - 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 policy
p2 - 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 policy
p2 - 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 API

Apache CXF