Class ServerPolicyCalculator
- java.lang.Object
-
- org.apache.cxf.transport.http.policy.impl.ServerPolicyCalculator
-
- All Implemented Interfaces:
org.apache.cxf.policy.PolicyCalculator<HTTPServerPolicy>
public class ServerPolicyCalculator extends Object implements org.apache.cxf.policy.PolicyCalculator<HTTPServerPolicy>
-
-
Constructor Summary
Constructors Constructor Description ServerPolicyCalculator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancompatible(HTTPServerPolicy p1, HTTPServerPolicy p2)Checks if two HTTPServerPolicy objects are compatible.booleanequals(HTTPServerPolicy p1, HTTPServerPolicy p2)Determines if two HTTPServerPolicy objects are equal.Class<HTTPServerPolicy>getDataClass()QNamegetDataClassName()HTTPServerPolicyintersect(HTTPServerPolicy p1, HTTPServerPolicy p2)Returns a new HTTPServerPolicy that is compatible with the two specified policies or null if no compatible policy can be determined.booleanisAsserted(org.apache.cxf.message.Message message, HTTPServerPolicy policy, HTTPServerPolicy refPolicy)static StringtoString(HTTPServerPolicy p)
-
-
-
Method Detail
-
intersect
public HTTPServerPolicy intersect(HTTPServerPolicy p1, HTTPServerPolicy p2)
Returns a new HTTPServerPolicy 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<HTTPServerPolicy>- Parameters:
p1- one policyp2- another policy- Returns:
- the compatible policy
-
compatible
public boolean compatible(HTTPServerPolicy p1, HTTPServerPolicy p2)
Checks if two HTTPServerPolicy objects are compatible.- Parameters:
p1- one server policyp2- another server policy- Returns:
- true iff policies are compatible
-
equals
public boolean equals(HTTPServerPolicy p1, HTTPServerPolicy p2)
Determines if two HTTPServerPolicy objects are equal. REVISIT: Check if this can be replaced by a generated equals method.- Parameters:
p1- one server policyp2- another server policy- Returns:
- true iff the two policies are equal
-
isAsserted
public boolean isAsserted(org.apache.cxf.message.Message message, HTTPServerPolicy policy, HTTPServerPolicy refPolicy)- Specified by:
isAssertedin interfaceorg.apache.cxf.policy.PolicyCalculator<HTTPServerPolicy>
-
getDataClass
public Class<HTTPServerPolicy> getDataClass()
- Specified by:
getDataClassin interfaceorg.apache.cxf.policy.PolicyCalculator<HTTPServerPolicy>
-
getDataClassName
public QName getDataClassName()
- Specified by:
getDataClassNamein interfaceorg.apache.cxf.policy.PolicyCalculator<HTTPServerPolicy>
-
toString
public static String toString(HTTPServerPolicy p)
-
-