|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cxf.transport.http.policy.PolicyUtils
public final class PolicyUtils
Field Summary | |
---|---|
static javax.xml.namespace.QName |
HTTPCLIENTPOLICY_ASSERTION_QNAME
|
static java.lang.String |
HTTPCONF_NAMESPACE
|
static javax.xml.namespace.QName |
HTTPSERVERPOLICY_ASSERTION_QNAME
|
Method Summary | |
---|---|
static void |
assertClientPolicy(Message message,
org.apache.cxf.transports.http.configuration.HTTPClientPolicy client)
Asserts all HTTPClientPolicy assertions that are compatible with the specified client policy. |
static void |
assertServerPolicy(Message message,
org.apache.cxf.transports.http.configuration.HTTPServerPolicy server)
Asserts all HTTPServerPolicy assertions that are equal to the specified server policy. |
static boolean |
compatible(org.apache.cxf.transports.http.configuration.HTTPClientPolicy p1,
org.apache.cxf.transports.http.configuration.HTTPClientPolicy p2)
Checks if two HTTPClientPolicy objects are compatible. |
static boolean |
compatible(org.apache.cxf.transports.http.configuration.HTTPServerPolicy p1,
org.apache.cxf.transports.http.configuration.HTTPServerPolicy p2)
Checks if two HTTPServerPolicy objects are compatible. |
static boolean |
equals(org.apache.cxf.transports.http.configuration.HTTPClientPolicy p1,
org.apache.cxf.transports.http.configuration.HTTPClientPolicy p2)
Determines if two HTTPClientPolicy objects are equal. |
static boolean |
equals(org.apache.cxf.transports.http.configuration.HTTPServerPolicy p1,
org.apache.cxf.transports.http.configuration.HTTPServerPolicy p2)
Determines if two HTTPServerPolicy objects are equal. |
static org.apache.cxf.transports.http.configuration.HTTPClientPolicy |
getClient(Message message,
org.apache.cxf.transports.http.configuration.HTTPClientPolicy confPolicy)
Returns a HTTPClientPolicy that is compatible with the assertions included in the service, endpoint, operation and message policy subjects AND the HTTPClientPolicy passed as a second argument. |
static org.apache.cxf.transports.http.configuration.HTTPClientPolicy |
getClient(PolicyEngine pe,
EndpointInfo ei,
Conduit c)
Returns a HTTPClientPolicy that is compatible with the assertions included in the service and endpoint policy subjects, or null if there are no such assertions. |
static org.apache.cxf.transports.http.configuration.HTTPServerPolicy |
getServer(Message message,
org.apache.cxf.transports.http.configuration.HTTPServerPolicy confPolicy)
Returns a HTTPServerPolicy that is compatible with the assertions included in the service, endpoint, operation and message policy subjects AND the HTTPServerPolicy passed as a second argument. |
static org.apache.cxf.transports.http.configuration.HTTPServerPolicy |
getServer(PolicyEngine pe,
EndpointInfo ei,
Destination d)
Returns a HTTPServerPolicy that is compatible with the assertions included in the service and endpoint policy subjects, or null if there are no such assertions. |
static org.apache.cxf.transports.http.configuration.HTTPClientPolicy |
intersect(org.apache.cxf.transports.http.configuration.HTTPClientPolicy p1,
org.apache.cxf.transports.http.configuration.HTTPClientPolicy p2)
Returns a new HTTPClientPolicy that is compatible with the two specified policies or null if no compatible policy can be determined. |
static org.apache.cxf.transports.http.configuration.HTTPServerPolicy |
intersect(org.apache.cxf.transports.http.configuration.HTTPServerPolicy p1,
org.apache.cxf.transports.http.configuration.HTTPServerPolicy p2)
Returns a new HTTPServerPolicy that is compatible with the two specified policies or null if no compatible policy can be determined. |
static java.lang.String |
toString(org.apache.cxf.transports.http.configuration.HTTPClientPolicy p)
|
static java.lang.String |
toString(org.apache.cxf.transports.http.configuration.HTTPServerPolicy p)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String HTTPCONF_NAMESPACE
public static final javax.xml.namespace.QName HTTPCLIENTPOLICY_ASSERTION_QNAME
public static final javax.xml.namespace.QName HTTPSERVERPOLICY_ASSERTION_QNAME
Method Detail |
---|
public static org.apache.cxf.transports.http.configuration.HTTPClientPolicy getClient(Message message, org.apache.cxf.transports.http.configuration.HTTPClientPolicy confPolicy)
message
- the messageconfPolicy
- the additional policy to be compatible with
PolicyException
- if no compatible HTTPClientPolicy can be determinedpublic static org.apache.cxf.transports.http.configuration.HTTPServerPolicy getServer(Message message, org.apache.cxf.transports.http.configuration.HTTPServerPolicy confPolicy)
message
- the messageconfPolicy
- the additional policy to be compatible with
PolicyException
- if no compatible HTTPServerPolicy can be determinedpublic static org.apache.cxf.transports.http.configuration.HTTPClientPolicy getClient(PolicyEngine pe, EndpointInfo ei, Conduit c)
pe
- the policy engineei
- the endpoint infoc
- the conduit
PolicyException
- if no compatible HTTPClientPolicy can be determinedpublic static org.apache.cxf.transports.http.configuration.HTTPServerPolicy getServer(PolicyEngine pe, EndpointInfo ei, Destination d)
pe
- the policy engineei
- the endpoint infod
- the destination
PolicyException
- if no compatible HTTPServerPolicy can be determinedpublic static void assertClientPolicy(Message message, org.apache.cxf.transports.http.configuration.HTTPClientPolicy client)
message
- the current messageclient
- the client policypublic static void assertServerPolicy(Message message, org.apache.cxf.transports.http.configuration.HTTPServerPolicy server)
message
- the current messageserver
- the server policypublic static boolean compatible(org.apache.cxf.transports.http.configuration.HTTPClientPolicy p1, org.apache.cxf.transports.http.configuration.HTTPClientPolicy p2)
p1
- one client policyp2
- another client policy
public static org.apache.cxf.transports.http.configuration.HTTPClientPolicy intersect(org.apache.cxf.transports.http.configuration.HTTPClientPolicy p1, org.apache.cxf.transports.http.configuration.HTTPClientPolicy p2)
p1
- one policyp2
- another policy
public static boolean equals(org.apache.cxf.transports.http.configuration.HTTPClientPolicy p1, org.apache.cxf.transports.http.configuration.HTTPClientPolicy p2)
p1
- one client policyp2
- another client policy
public static boolean compatible(org.apache.cxf.transports.http.configuration.HTTPServerPolicy p1, org.apache.cxf.transports.http.configuration.HTTPServerPolicy p2)
p1
- one server policyp2
- another server policy
public static org.apache.cxf.transports.http.configuration.HTTPServerPolicy intersect(org.apache.cxf.transports.http.configuration.HTTPServerPolicy p1, org.apache.cxf.transports.http.configuration.HTTPServerPolicy p2)
p1
- one policyp2
- another policy
public static boolean equals(org.apache.cxf.transports.http.configuration.HTTPServerPolicy p1, org.apache.cxf.transports.http.configuration.HTTPServerPolicy p2)
p1
- one server policyp2
- another server policy
public static java.lang.String toString(org.apache.cxf.transports.http.configuration.HTTPClientPolicy p)
public static java.lang.String toString(org.apache.cxf.transports.http.configuration.HTTPServerPolicy p)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |