Apache CXF API

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

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

public class ServerPolicyCalculator
extends Object
implements PolicyCalculator<HTTPServerPolicy>


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

Constructor Detail

ServerPolicyCalculator

public ServerPolicyCalculator()
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:
intersect in interface PolicyCalculator<HTTPServerPolicy>
Parameters:
p1 - one policy
p2 - 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 policy
p2 - 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 policy
p2 - another server policy
Returns:
true iff the two policies are equal

isAsserted

public boolean isAsserted(Message message,
                          HTTPServerPolicy policy,
                          HTTPServerPolicy refPolicy)
Specified by:
isAsserted in interface PolicyCalculator<HTTPServerPolicy>

getDataClass

public Class<HTTPServerPolicy> getDataClass()
Specified by:
getDataClass in interface PolicyCalculator<HTTPServerPolicy>

getDataClassName

public QName getDataClassName()
Specified by:
getDataClassName in interface PolicyCalculator<HTTPServerPolicy>

toString

public static String toString(HTTPServerPolicy p)

Apache CXF API

Apache CXF