Skip navigation links

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

E10689-01


oracle.wsm.policy.wsdl.util
Class WSDLPolicyUtil

java.lang.Object
  extended by oracle.wsm.policy.wsdl.util.WSDLPolicyUtil


public class WSDLPolicyUtil
extends Object

Constructor Summary
WSDLPolicyUtil()
           

 

Method Summary
static List<IPolicy> getPoliciesAttachedToWSDLBinding(javax.wsdl.Definition def, javax.wsdl.Port port)
          Returns the list of Policies in the WSDL.
static HashMap<String,List<IPolicy>> getPoliciesAttachedToWSDLBindingInputOuput(javax.wsdl.Definition def, javax.wsdl.Port port)
          Fetches all the policies attached to the BindingOperationInput and BindingOperationOutput seprately in a List .
static HashMap<String,List<IPolicy>> getPoliciesAttachedToWSDLBindingOperation(javax.wsdl.Definition def, javax.wsdl.Port port)
          Fetches all the policies attached to each BindingOperation in a List .
static List<IPolicy> getPoliciesAttachedToWSDLPort(javax.wsdl.Definition def, javax.wsdl.Port port)
          Returns the list of Policies in the WSDL.
static List<IPolicy> getPoliciesFromExtensibilityElements(List extensibilityElements, IPolicyRegistry policyRegistry)
          Fetches the policies attached to the extensibilityElements from the PolicyRegistry.
static IPolicyRegistry getPoliciesInWSDL(javax.wsdl.Definition def)
          Returns the list of Policies in the WSDL.
static List<IPolicyReference> getPolicyReferences(List extensibilityElements)
          Return all PolicyReferences from a the list of WSDL extensibility items
 Map<Object,List<IPolicyReference>> getPolicySubjectAndPolicyRefsMapForWSDL(javax.wsdl.Definition def)
          Returns a Map where the key is WSDL Object (i.e.
static javax.wsdl.Definition getWSDL(String wsdlDefinition)
           
static javax.wsdl.xml.WSDLReader getWSDLReader()
           
static boolean isOraWSDL(javax.wsdl.Definition def)
          Returns true if the WSDL contains oracle proprietary extensions
static Map<Object,IPolicy> mergePoliciesForWSDLPolicySubjects(Map<Object,List<IPolicyReference>> policySubjectAndPolicyRefs, IPolicyRegistry registry)
          Given a Policy Subject (a WSDL Object - can be Port, Binding, etc) and the list of PolicyReferences associated with that WSDL Policy Subject, merges all Policies referenced for the WSDL Policy Subject.
static Map<Object,IPolicy> mergePoliciesForWSDLPolicySubjects(Map<Object,List<String>> policySubjectAndPolicyRefs, Map<String,IPolicy> policies)
          Given a Policy Subject (a WSDL Object - can be Port, Binding, etc) and the list of PolicyReferences associated with that WSDL Policy Subject, merges all Policies referenced for the WSDL Policy Subject.
static void processWSDLBinding(javax.wsdl.Binding binding, Map<Object,List<IPolicyReference>> policySubjectsAndPolicyRefs)
          Populates the Map with the PolicyReferences for the WSDL Binding.
static void processWSDLBindingFault(javax.wsdl.BindingFault bindingFault, Map<Object,List<IPolicyReference>> policySubjectsAndPolicyRefs)
          Populates the Map with the PolicyReferences for the WSDL BindingFault.
static void processWSDLBindingInput(javax.wsdl.BindingInput bindingInput, Map<Object,List<IPolicyReference>> policySubjectsAndPolicyRefs)
          Populates the Map with the PolicyReferences for the WSDL Binding Input.
static void processWSDLBindingOutput(javax.wsdl.BindingOutput bindingOutput, Map<Object,List<IPolicyReference>> policySubjectsAndPolicyRefs)
          Populates the Map with the PolicyReferences for the WSDL Binding Output.
static void processWSDLOperation(javax.wsdl.BindingOperation bindingOper, Map<Object,List<IPolicyReference>> policySubjectsAndPolicyRefs)
          Populates the Map with the PolicyReferences for the WSDL Binding Operation.
static void processWSDLPort(javax.wsdl.Port port, Map<Object,List<IPolicyReference>> policySubjectsAndPolicyRefs)
          Populates the Map with the PolicyReferences for the WSDL Port.
static void processWSDLService(javax.wsdl.Service service, Map<Object,List<IPolicyReference>> policySubjectsAndPolicyRefs)
          Populates the Map with the PolicyReferences for this service.

 

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

 

Constructor Detail

WSDLPolicyUtil

public WSDLPolicyUtil()

Method Detail

isOraWSDL

public static boolean isOraWSDL(javax.wsdl.Definition def)
Returns true if the WSDL contains oracle proprietary extensions
Parameters:
def -
Returns:

getPoliciesInWSDL

public static IPolicyRegistry getPoliciesInWSDL(javax.wsdl.Definition def)
Returns the list of Policies in the WSDL. NOTE: The List of Policies in the WSDL is retrieved by looking at the oracle.wsm.policy.wsdl.extensions.PolicyExtension extensibility elements. Only Policies that are attached directly under the WSDL Definition are retrieved!
Parameters:
def -
Returns:
IPolicyRegistry

getPoliciesAttachedToWSDLPort

public static List<IPolicy> getPoliciesAttachedToWSDLPort(javax.wsdl.Definition def,
                                                          javax.wsdl.Port port)
Returns the list of Policies in the WSDL. NOTE: The List of Policies in the WSDL is retrieved by looking at the oracle.wsm.policy.wsdl.extensions.PolicyExtension extensibility elements.
Parameters:
def -
Returns:
IPolicyRegistry

getPoliciesAttachedToWSDLBinding

public static List<IPolicy> getPoliciesAttachedToWSDLBinding(javax.wsdl.Definition def,
                                                             javax.wsdl.Port port)
Returns the list of Policies in the WSDL. NOTE: The List of Policies in the WSDL is retrieved by looking at the oracle.wsm.policy.wsdl.extensions.PolicyExtension extensibility elements.
Parameters:
def -
Returns:
IPolicyRegistry

getPoliciesAttachedToWSDLBindingOperation

public static HashMap<String,List<IPolicy>> getPoliciesAttachedToWSDLBindingOperation(javax.wsdl.Definition def,
                                                                                      javax.wsdl.Port port)
Fetches all the policies attached to each BindingOperation in a List . Puts them in a HashMap against BindingOperation name and sends them back.
Parameters:
def -
port -
Returns:
HashMap

getPoliciesAttachedToWSDLBindingInputOuput

public static HashMap<String,List<IPolicy>> getPoliciesAttachedToWSDLBindingInputOuput(javax.wsdl.Definition def,
                                                                                       javax.wsdl.Port port)
Fetches all the policies attached to the BindingOperationInput and BindingOperationOutput seprately in a List . Puts them in a HashMap and sends them back.
Parameters:
def -
port -
Returns:
HashMap

getPoliciesFromExtensibilityElements

public static List<IPolicy> getPoliciesFromExtensibilityElements(List extensibilityElements,
                                                                 IPolicyRegistry policyRegistry)
Fetches the policies attached to the extensibilityElements from the PolicyRegistry. Puts all the polices attached in a List.
Parameters:
extensibilityElements -
policyRegistry -
Returns:

getPolicySubjectAndPolicyRefsMapForWSDL

public Map<Object,List<IPolicyReference>> getPolicySubjectAndPolicyRefsMapForWSDL(javax.wsdl.Definition def)
Returns a Map where the key is WSDL Object (i.e. the Policy Subject) and a List of PolicyReferences associated with the Policy Subject. NOTE: Assumes that the WSDL has PolicyReferences associated with the Policy Subjects (i.e. WSDL Subjects) Iterates over all the WSDL objects
Parameters:
def - WSDL with Policy and PolicyReferences
Returns:
Map<Object, List>IPolicyReference>>

getPolicyReferences

public static List<IPolicyReference> getPolicyReferences(List extensibilityElements)
Return all PolicyReferences from a the list of WSDL extensibility items
Parameters:
extensibilityElements -
Returns:

processWSDLService

public static void processWSDLService(javax.wsdl.Service service,
                                      Map<Object,List<IPolicyReference>> policySubjectsAndPolicyRefs)
Populates the Map with the PolicyReferences for this service. The List of PolicyReferences associated with the WSDL Service object are added to the Map Recursively calls processWSDLPort(..) for each WSDL Port defined within this WSDL Service.
Parameters:
service -
policySubjectsAndPolicyRefs -

processWSDLPort

public static void processWSDLPort(javax.wsdl.Port port,
                                   Map<Object,List<IPolicyReference>> policySubjectsAndPolicyRefs)
Populates the Map with the PolicyReferences for the WSDL Port. The List of PolicyReferences associated with the WSDL Port object are added to the Map Recursively calls processWSDLBinding(..) for the corresponding WSDL Binding associated with this WSDL Port
Parameters:
port -
policySubjectsAndPolicyRefs -

processWSDLBinding

public static void processWSDLBinding(javax.wsdl.Binding binding,
                                      Map<Object,List<IPolicyReference>> policySubjectsAndPolicyRefs)
Populates the Map with the PolicyReferences for the WSDL Binding. The List of PolicyReferences associated with the WSDL Binding object are added to the Map Recursively calls processWSDLBindingOperation(..) for each operation defined in the WSDL Binding
Parameters:
binding -
policySubjectsAndPolicyRefs -

processWSDLOperation

public static void processWSDLOperation(javax.wsdl.BindingOperation bindingOper,
                                        Map<Object,List<IPolicyReference>> policySubjectsAndPolicyRefs)
Populates the Map with the PolicyReferences for the WSDL Binding Operation. The List of PolicyReferences associated with the WSDL Binding Operation object are added to the Map Recursively calls processWSDLBindingInput(..) for the input Recursively calls processWSDLBindingOutput(..) for the output Recursively calls processWSDLBindingFault(..) for all the faults defined for this operation
Parameters:
bindingOper -
policySubjectsAndPolicyRefs -

processWSDLBindingInput

public static void processWSDLBindingInput(javax.wsdl.BindingInput bindingInput,
                                           Map<Object,List<IPolicyReference>> policySubjectsAndPolicyRefs)
Populates the Map with the PolicyReferences for the WSDL Binding Input. The List of PolicyReferences associated with the WSDL Binding Input object are added to the Map
Parameters:
bindingInput -
policySubjectsAndPolicyRefs -

processWSDLBindingOutput

public static void processWSDLBindingOutput(javax.wsdl.BindingOutput bindingOutput,
                                            Map<Object,List<IPolicyReference>> policySubjectsAndPolicyRefs)
Populates the Map with the PolicyReferences for the WSDL Binding Output. The List of PolicyReferences associated with the WSDL Binding Output object are added to the Map
Parameters:
bindingOutput -
policySubjectsAndPolicyRefs -

processWSDLBindingFault

public static void processWSDLBindingFault(javax.wsdl.BindingFault bindingFault,
                                           Map<Object,List<IPolicyReference>> policySubjectsAndPolicyRefs)
Populates the Map with the PolicyReferences for the WSDL BindingFault. The List of PolicyReferences associated with the WSDL BindingFault object are added to the Map
Parameters:
bindingFault -
policySubjectsAndPolicyRefs -

mergePoliciesForWSDLPolicySubjects

public static Map<Object,IPolicy> mergePoliciesForWSDLPolicySubjects(Map<Object,List<IPolicyReference>> policySubjectAndPolicyRefs,
                                                                     IPolicyRegistry registry)
Given a Policy Subject (a WSDL Object - can be Port, Binding, etc) and the list of PolicyReferences associated with that WSDL Policy Subject, merges all Policies referenced for the WSDL Policy Subject. This is done interatively for every entry in the policySubjectAndPolicyRefs Map, where each entry in the map is a unique WSDL Policy Subject. The return argument is the Merged Policy for each WSDL Policy Subject in the input param policySubjectAndPolicyRefs
Parameters:
policySubjectAndPolicyRefs -
registry -
Returns:
Map<Object, IPolicy>

mergePoliciesForWSDLPolicySubjects

public static Map<Object,IPolicy> mergePoliciesForWSDLPolicySubjects(Map<Object,List<String>> policySubjectAndPolicyRefs,
                                                                     Map<String,IPolicy> policies)
Given a Policy Subject (a WSDL Object - can be Port, Binding, etc) and the list of PolicyReferences associated with that WSDL Policy Subject, merges all Policies referenced for the WSDL Policy Subject. This is done interatively for every entry in the policySubjectAndPolicyRefs Map, where each entry in the map is a unique WSDL Policy Subject. The return argument is the Merged Policy for each WSDL Policy Subject in the input param policySubjectAndPolicyRefs
Parameters:
policySubjectAndPolicyRefs -
policies -
Returns:
Map<Object, IPolicy>

getWSDLReader

public static javax.wsdl.xml.WSDLReader getWSDLReader()
                                               throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException

getWSDL

public static javax.wsdl.Definition getWSDL(String wsdlDefinition)
                                     throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException

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.