Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


oracle.wsm.policyimport.compatibility
Class PolicyCompatibilityResult

java.lang.Object
  extended by oracle.wsm.policyimport.compatibility.PolicyCompatibilityResult

All Implemented Interfaces:
Serializable, IPolicyCompatibilityResult, IPolicyCompatibilityResultInternal

public class PolicyCompatibilityResult
extends Object
implements IPolicyCompatibilityResultInternal

In order to manage the Qos requirements between the client and service, we provide the ability to check if the client side policies are compatible with the service side policies. The results of a policy compatibility check are captured via IPolicyCompatibilityResult.

See Also:
Serialized Form

Constructor Summary
PolicyCompatibilityResult()
           

 

Method Summary
 void addIncompatibilityResult(IWSDLFragment wsdlFragment, IIntersectionContext context)
          Add the results of the policy incompatibility.
 Map<IWSDLFragment,IIntersectionContext> getIncompatibilityResults()
          Returns the reasons/causes for the Policy Incompatibility.
 String getWSDL()
          Get the WSDL that contains the client side policy and the corresponding service side Policy Note: It is returned as a String.
 boolean isCompatible()
          Returns true if the client side policies are compatible with service side policies.
 void setWSDL(String wsdlDefinition)
          Set the WSDL that contains the client side policy and the corresponding service side Policy

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

PolicyCompatibilityResult

public PolicyCompatibilityResult()

Method Detail

addIncompatibilityResult

public void addIncompatibilityResult(IWSDLFragment wsdlFragment,
                                     IIntersectionContext context)
Add the results of the policy incompatibility. Policy Incompatibility is captured on a per Policy Subject basis, where in the Policy subjects are basically WSDL Policy Subject represented by WSDL Fragments.
Specified by:
addIncompatibilityResult in interface IPolicyCompatibilityResultInternal
Parameters:
wsdlFragment - - The WSDL Fragment that represents the corresponding WSDL Policy Subject.
context - - IIntersectionContext - the context captures the results of the compatibility check or the policy subject represented by wsdlFragment.

getIncompatibilityResults

public Map<IWSDLFragment,IIntersectionContext> getIncompatibilityResults()
Returns the reasons/causes for the Policy Incompatibility.
Specified by:
getIncompatibilityResults in interface IPolicyCompatibilityResultInternal
Returns:
Map<IWSDLFragment, IIntersectionContext> - The reasons for the policy incompatibility. The map provides Incompatibility on a per WSDL Policy Subject basis.

isCompatible

public boolean isCompatible()
Returns true if the client side policies are compatible with service side policies. Returns false otherwise. The reasons for the incompatibility can be retrieved using the getIncompatibilityResults API.
Specified by:
isCompatible in interface IPolicyCompatibilityResult
Returns:
boolean

setWSDL

public void setWSDL(String wsdlDefinition)
Set the WSDL that contains the client side policy and the corresponding service side Policy
Specified by:
setWSDL in interface IPolicyCompatibilityResult

getWSDL

public String getWSDL()
Get the WSDL that contains the client side policy and the corresponding service side Policy Note: It is returned as a String. It is responsibility of the client to use the WSDL4J APIs to convert this to a javax.wsdl.Definition object.
Specified by:
getWSDL in interface IPolicyCompatibilityResult

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.