Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

oracle.apps.fnd.applcore.common
Class ApplSessionContext

java.lang.Object
  extended by oracle.apps.fnd.applcore.common.ApplSessionContext
All Implemented Interfaces:
oracle.j2ee.ws.common.context.ContextProvider

public class ApplSessionContext
extends java.lang.Object
implements oracle.j2ee.ws.common.context.ContextProvider

This class implements the ContextProvider interface to provide a representation of all the relevant AOL context state that can be serialized and deserialized and passed along in a BPEL process. It is only intended for use by code from the BPEL layer.


Field Summary
static java.lang.String APPL_SESSION_SCHEMA_NAME
           
static java.lang.String APPL_SESSION_TABLE
           
static java.lang.String APPL_SESSSION_SCHEMA_NAME
           
static java.lang.String APPL_SESSSION_TABLE
           
static java.lang.String BASE_CONTEXT
           
static java.lang.String NAMESPACE
           
 
Constructor Summary
ApplSessionContext()
           
 
Method Summary
 java.lang.Object fromXML(org.w3c.dom.Element rootEl)
          Deserializes the Element into an Object representing the AOL Context, which can then be passed to the 'setContext' method above.
 java.lang.Object getContext()
          Deprecated.  
 java.lang.Object getContext(boolean isClient)
          This fetches the current state of the AOL context, and returns an object containing that state which will passed to the 'toXML' method and serialized into XML.
 javax.xml.namespace.QName getContextQName()
          This returns the qualified name of this context.
 void setContext(boolean isClient, java.lang.Object context)
          After the XML has been de-serialized by the 'fromXML' call, the resulting object is passed to this call to set whatever pieces of AOL context the passed in object contained.
 void setContext(java.lang.Object context)
          Deprecated.  
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.Object context)
          Serializes the passed in AOL context into XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final java.lang.String NAMESPACE
See Also:
Constant Field Values

BASE_CONTEXT

public static final java.lang.String BASE_CONTEXT
See Also:
Constant Field Values

APPL_SESSION_TABLE

public static final java.lang.String APPL_SESSION_TABLE
See Also:
Constant Field Values

APPL_SESSION_SCHEMA_NAME

public static final java.lang.String APPL_SESSION_SCHEMA_NAME
See Also:
Constant Field Values

APPL_SESSSION_TABLE

public static final java.lang.String APPL_SESSSION_TABLE
See Also:
Constant Field Values

APPL_SESSSION_SCHEMA_NAME

public static final java.lang.String APPL_SESSSION_SCHEMA_NAME
See Also:
Constant Field Values
Constructor Detail

ApplSessionContext

public ApplSessionContext()
Method Detail

getContextQName

public javax.xml.namespace.QName getContextQName()
This returns the qualified name of this context.

Specified by:
getContextQName in interface oracle.j2ee.ws.common.context.ContextProvider
Returns:
the QName of this context

getContext

public java.lang.Object getContext()
Deprecated. 

This fetches the current state of the AOL context, and returns an object containing that state which will passed to the 'toXML' method and serialized into XML.

Specified by:
getContext in interface oracle.j2ee.ws.common.context.ContextProvider
Returns:
an Object which will be passed to the toXML method

setContext

public void setContext(java.lang.Object context)
Deprecated. 

After the XML has been de-serialized by the 'fromXML' call, the resulting object is passed to this call to set whatever pieces of AOL context the passed in object contained.

Specified by:
setContext in interface oracle.j2ee.ws.common.context.ContextProvider
Parameters:
context - the deserialized XML object containing the AOL context

getContext

public java.lang.Object getContext(boolean isClient)
This fetches the current state of the AOL context, and returns an object containing that state which will passed to the 'toXML' method and serialized into XML. The ContextProvider interface will be changing to use the getContext api below, but we define both for now to avoid errors from cropping up when we uptake the newer version.

Specified by:
getContext in interface oracle.j2ee.ws.common.context.ContextProvider
Parameters:
isClient - true if this is being during the propagation phase, false if being called from the receiving end
Returns:
an Object which will be passed to the toXML method

setContext

public void setContext(boolean isClient,
                       java.lang.Object context)
After the XML has been de-serialized by the 'fromXML' call, the resulting object is passed to this call to set whatever pieces of AOL context the passed in object contained. The ContextProvider interface will be changing to use the setContext api below, but we define both for now to avoid errors from cropping up when we uptake the newer version.

Specified by:
setContext in interface oracle.j2ee.ws.common.context.ContextProvider
Parameters:
isClient - true if this is being during the propagation phase, false if being called from the receiving end
context - the deserialized XML object containing the AOL context

toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
                                 java.lang.Object context)
                          throws java.lang.Exception
Serializes the passed in AOL context into XML. The AOL context is obtained by the getContext() method above.

Specified by:
toXML in interface oracle.j2ee.ws.common.context.ContextProvider
Parameters:
doc - an XML document
context - the representation of the AOL context
Returns:
an the context as an XML Element
Throws:
java.lang.Exception

fromXML

public java.lang.Object fromXML(org.w3c.dom.Element rootEl)
                         throws java.lang.Exception
Deserializes the Element into an Object representing the AOL Context, which can then be passed to the 'setContext' method above.

Specified by:
fromXML in interface oracle.j2ee.ws.common.context.ContextProvider
Parameters:
rootEl - the Element to deserialize
Returns:
an Object representing the AOL context
Throws:
java.lang.Exception

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.