Skip navigation links

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

E10689-01


oracle.wsm.policy.util
Class PolicySerializerDeSerializerFactory

java.lang.Object
  extended by oracle.wsm.policy.util.PolicySerializerDeSerializerFactory


public class PolicySerializerDeSerializerFactory
extends Object

This class maintains a Map of the Serializer/DeSerializers to be used for serializing/de-serializing a Policy. It provides a plug-in framework to support custom assertion development. Currently the framework is DOM based. The framework currently does not allow overriding serializer/de-serializers for some of the standard elements like wsp:Policy, wsp:All, wsp:ExactlyOne, wsp:PolicyAttachment, orawsp:PolicySet, etc. The framework has the concept of a default Seralizer/DeSerializer. One of the goals of the framework is to reduce the need for writing Serializer/De-Serializers where possible. To faciliate this aspect, the framework defines the concept of Default Serializer/De-Serializer. The "Default" Serializer/De-Serializer can be used when Assertions follow a particular pattern. The framework defines different types of Assertions. These can be currently categorized into the following:

  1. Simple Assertions ISimpleAssertion
  2. Nested Assertions INestedAssertion
  3. Composite Assertions ICompositeAssertion
  4. Scenario Assertions IScenarioAssertion
  5. Step Scenario Assertions oracle.wsm.policy.model.IStepScenarioAssertion
  6. Policy IPolicy
  7. PolicyReference IPolicyReference

IAssertion for more details. The Default Serializer/De-Serializer can be used when Assertions are either of type ISimpleAssertion or of type INestedAssertion. Example: Most assertions specified in the WS-SecurityPolicy spec fall into this category. Custom Assertion Development and Serialization/De-Serialization:


Field Summary
static int DOM_POLICY_READER
           
static int DOM_POLICY_WRITER
           

 

Constructor Summary
PolicySerializerDeSerializerFactory()
           

 

Method Summary
static IPolicyReader getPolicyReader(int type)
           
static IPolicyWriter getPolicyWriter(int type)
           

 

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

 

Field Detail

DOM_POLICY_READER

public static final int DOM_POLICY_READER
See Also:
Constant Field Values

DOM_POLICY_WRITER

public static final int DOM_POLICY_WRITER
See Also:
Constant Field Values

Constructor Detail

PolicySerializerDeSerializerFactory

public PolicySerializerDeSerializerFactory()

Method Detail

getPolicyReader

public static IPolicyReader getPolicyReader(int type)

getPolicyWriter

public static IPolicyWriter getPolicyWriter(int type)

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.