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 AdvertisementPolicyUtil

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


public class AdvertisementPolicyUtil
extends Object

Constructor Summary
AdvertisementPolicyUtil()
           

 

Method Summary
static void addAssertionToParent(AdvertisementContext context, IAssertion assertionToAdd)
          Adds the Assertion to parent assertion which is maintained at top of the processing Stack by the Advertisement Context
static void addMessageLevelPolicyToAllWSDLFaultSubjects(AdvertisementContext ctx, javax.wsdl.Port wsdlPort, IPolicy msgLevelPolicy, boolean autoGeneratePolicyId)
          Add the Policy to all the Message level Fault Policy Subjects! if autoGeneratePolicyId is set to true then the wsu:Id on wsp:Policy is set to <orginalPolicyId>+"_"+wsdlPortName+"_Fault_Policy".
static void addMessageLevelPolicyToAllWSDLInputSubject(AdvertisementContext ctx, javax.wsdl.Port wsdlPort, IPolicy msgLevelPolicy, boolean autoGeneratePolicyId)
          Add the Policy to all the Message level Input Policy Subjects! if autoGeneratePolicyId is set to true then the wsu:Id on wsp:Policy is set to <orginalPolicyId>+"_"+wsdlPortName+"_Input_Policy".
static void addMessageLevelPolicyToAllWSDLMessageLevelSubjects(AdvertisementContext ctx, javax.wsdl.Port wsdlPort, javax.wsdl.BindingOperation wsdlBindingOperation, IPolicy msgLevelPolicy, boolean autoGeneratePolicyId)
          Add the Policy to all the Message level Policy Subjects (i.e.
static void addMessageLevelPolicyToAllWSDLMessageLevelSubjects(AdvertisementContext ctx, javax.wsdl.Port wsdlPort, IPolicy msgLevelPolicy, boolean autoGeneratePolicyId)
          Add the Policy to all the Message level Policy Subjects (i.e.
static void addMessageLevelPolicyToAllWSDLOutputSubjects(AdvertisementContext ctx, javax.wsdl.Port wsdlPort, IPolicy msgLevelPolicy, boolean autoGeneratePolicyId)
          Add the Policy to all the Message level Output Policy Subjects! if autoGeneratePolicyId is set to true then the wsu:Id on wsp:Policy is set to <orginalPolicyId>+"_"+wsdlPortName+"_Output_Policy".
static void addOperationLevelPolicyToAllWSDLOperationSubjects(AdvertisementContext ctx, javax.wsdl.Port wsdlPort, IPolicy operLevelPolicy, boolean autoGeneratePolicyId)
          Add the Policy to all the Operation level Policy Subjects! if autoGeneratePolicyId is set to true then the wsu:Id on wsp:Policy is set to <orginalPolicyId>+"_"+wsdlPortName+"_Operation_Policy".
static boolean isAdvertVersion11(String advertVersion)
          if advertVersion is 'wsdl11' then return 'true'
static void modifyAttributesNamespacesAsWSPolicy15(Map<QName,String> attributes)
          This method will modify the policy xml namespaces as per ws-policy 1.5
static void modifyAttributesNamespacesAsWSPolicy2006(Map<QName,String> attributes)
           

 

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

 

Constructor Detail

AdvertisementPolicyUtil

public AdvertisementPolicyUtil()

Method Detail

addAssertionToParent

public static void addAssertionToParent(AdvertisementContext context,
                                        IAssertion assertionToAdd)
                                 throws AdvertisementException
Adds the Assertion to parent assertion which is maintained at top of the processing Stack by the Advertisement Context
Parameters:
context -
assertionToAdd -
Throws:
AdvertisementException

addMessageLevelPolicyToAllWSDLInputSubject

public static void addMessageLevelPolicyToAllWSDLInputSubject(AdvertisementContext ctx,
                                                              javax.wsdl.Port wsdlPort,
                                                              IPolicy msgLevelPolicy,
                                                              boolean autoGeneratePolicyId)
Add the Policy to all the Message level Input Policy Subjects! if autoGeneratePolicyId is set to true then the wsu:Id on wsp:Policy is set to <orginalPolicyId>+"_"+wsdlPortName+"_Input_Policy". If autoGeneratePolicyId is set to false and msgLevelPolicy.getPolicyId() returns null then the wsu:Id on wsp:Policy is set to wsdlPortName+"_Input_Policy".
Parameters:
ctx -
wsdlPort -
msgLevelPolicy -
autoGeneratePolicyId -

addMessageLevelPolicyToAllWSDLOutputSubjects

public static void addMessageLevelPolicyToAllWSDLOutputSubjects(AdvertisementContext ctx,
                                                                javax.wsdl.Port wsdlPort,
                                                                IPolicy msgLevelPolicy,
                                                                boolean autoGeneratePolicyId)
Add the Policy to all the Message level Output Policy Subjects! if autoGeneratePolicyId is set to true then the wsu:Id on wsp:Policy is set to <orginalPolicyId>+"_"+wsdlPortName+"_Output_Policy". If autoGeneratePolicyId is set to false and msgLevelPolicy.getPolicyId() returns null then the wsu:Id on wsp:Policy is set to wsdlPortName+"_Output_Policy".
Parameters:
ctx -
wsdlPort -
msgLevelPolicy -
autoGeneratePolicyId -

addMessageLevelPolicyToAllWSDLFaultSubjects

public static void addMessageLevelPolicyToAllWSDLFaultSubjects(AdvertisementContext ctx,
                                                               javax.wsdl.Port wsdlPort,
                                                               IPolicy msgLevelPolicy,
                                                               boolean autoGeneratePolicyId)
Add the Policy to all the Message level Fault Policy Subjects! if autoGeneratePolicyId is set to true then the wsu:Id on wsp:Policy is set to <orginalPolicyId>+"_"+wsdlPortName+"_Fault_Policy". If autoGeneratePolicyId is set to false and msgLevelPolicy.getPolicyId() returns null then the wsu:Id on wsp:Policy is set to wsdlPortName+"_Fault_Policy".
Parameters:
ctx -
wsdlPort -
msgLevelPolicy -
autoGeneratePolicyId -

addMessageLevelPolicyToAllWSDLMessageLevelSubjects

public static void addMessageLevelPolicyToAllWSDLMessageLevelSubjects(AdvertisementContext ctx,
                                                                      javax.wsdl.Port wsdlPort,
                                                                      IPolicy msgLevelPolicy,
                                                                      boolean autoGeneratePolicyId)
Add the Policy to all the Message level Policy Subjects (i.e. Input, Output, Fault)! if autoGeneratePolicyId is set to true then the wsu:Id on wsp:Policy is set to <orginalPolicyId>+"_"+wsdlPortName+"_Message_Policy". If autoGeneratePolicyId is set to false and msgLevelPolicy.getPolicyId() returns null then the wsu:Id on wsp:Policy is set to wsdlPortName+"_Fault_Policy".
Parameters:
ctx -
wsdlPort -
msgLevelPolicy -
autoGeneratePolicyId -

addMessageLevelPolicyToAllWSDLMessageLevelSubjects

public static void addMessageLevelPolicyToAllWSDLMessageLevelSubjects(AdvertisementContext ctx,
                                                                      javax.wsdl.Port wsdlPort,
                                                                      javax.wsdl.BindingOperation wsdlBindingOperation,
                                                                      IPolicy msgLevelPolicy,
                                                                      boolean autoGeneratePolicyId)
Add the Policy to all the Message level Policy Subjects (i.e. Input, Output, Fault)! if autoGeneratePolicyId is set to true then the wsu:Id on wsp:Policy is set to <orginalPolicyId>+"_"+wsdlPortName+"_Message_Policy". If autoGeneratePolicyId is set to false and msgLevelPolicy.getPolicyId() returns null then the wsu:Id on wsp:Policy is set to wsdlPortName+"_Fault_Policy".
Parameters:
ctx -
wsdlPort -
msgLevelPolicy -
autoGeneratePolicyId -

addOperationLevelPolicyToAllWSDLOperationSubjects

public static void addOperationLevelPolicyToAllWSDLOperationSubjects(AdvertisementContext ctx,
                                                                     javax.wsdl.Port wsdlPort,
                                                                     IPolicy operLevelPolicy,
                                                                     boolean autoGeneratePolicyId)
Add the Policy to all the Operation level Policy Subjects! if autoGeneratePolicyId is set to true then the wsu:Id on wsp:Policy is set to <orginalPolicyId>+"_"+wsdlPortName+"_Operation_Policy". If autoGeneratePolicyId is set to false and msgLevelPolicy.getPolicyId() returns null then the wsu:Id on wsp:Policy is set to wsdlPortName+"_Operation_Policy".
Parameters:
ctx -
wsdlPort -
msgLevelPolicy -
autoGeneratePolicyId -

modifyAttributesNamespacesAsWSPolicy15

public static void modifyAttributesNamespacesAsWSPolicy15(Map<QName,String> attributes)
This method will modify the policy xml namespaces as per ws-policy 1.5

modifyAttributesNamespacesAsWSPolicy2006

public static void modifyAttributesNamespacesAsWSPolicy2006(Map<QName,String> attributes)

isAdvertVersion11

public static boolean isAdvertVersion11(String advertVersion)
if advertVersion is 'wsdl11' then return 'true'
Parameters:
advertVersion -
Returns:

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.