|
Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1.7.0) E10684-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adf.view.rich.remote.RemoteApplicationContext
public abstract class RemoteApplicationContext
The RemoteApplicationContext is a context used when the richclient is running as a producer using the RemoteApplication framework. It contains information about the current execution of the producer. If getCurrentInstance returns null
, then a context has not been set up, which means you are not running as a producer. <p/> Asside from storing items needed by the RemoteApplication framework, this class provides the ability to store attributes on the current context. This is a nice alternative to dirtying up the RequestScope using request-scope attributes.
Constructor Summary | |
---|---|
protected |
RemoteApplicationContext() The default constructor which sets context on the current threadlocal. |
Method Summary | |
---|---|
abstract RemoteApplicationRequest |
getApplicationRequest() Returns the RemoteApplicationRequest that was used to make this request. |
java.lang.Object |
getAttribute(java.lang.String key) Reads an attribute from the attribute map. |
static RemoteApplicationContext |
getCurrentInstance() Returns the current instance of the RemoteApplicationContext if there is one. |
javax.servlet.http.HttpSession |
getOrigionalSession() Returns the origional HttpSession, creating one if the session has not already been established. |
abstract javax.servlet.http.HttpSession |
getOrigionalSession(boolean create) Returns the parent session. |
RemoteApplication |
getRequestedRemoteApplication() Returns the RemoteApplication object used to make the request. |
void |
release() Releases the context from the current thread. |
java.lang.Object |
removeAttribute(java.lang.String key) Removes an attribute from the attribute map |
java.lang.Object |
setAttribute(java.lang.String key, java.lang.Object value) Adds an attribute to the attribute map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected RemoteApplicationContext()
Method Detail |
---|
public static RemoteApplicationContext getCurrentInstance()
null
if we are not in a RemoteApplicationRequest.public abstract RemoteApplicationRequest getApplicationRequest()
public RemoteApplication getRequestedRemoteApplication()
RemoteApplicationRequest.getRemoteApplication()
from the stored RemoteApplicationRequest.public abstract javax.servlet.http.HttpSession getOrigionalSession(boolean create)
create
- set to true
if you want a new session created if there is not already one established or false
if you want this method to return null in the case that no session was created.public javax.servlet.http.HttpSession getOrigionalSession()
RemoteApplicationContext.getOriginalSession(true)
.public java.lang.Object getAttribute(java.lang.String key)
key
- the key of the attributenull
public java.lang.Object setAttribute(java.lang.String key, java.lang.Object value)
key
- the key of the attributevalue
- the value of the attributenull
public java.lang.Object removeAttribute(java.lang.String key)
key
- the key of the attributenull
public void release()
|
Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1.7.0) E10684-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |