Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-02


oracle.stellent.wcm.client.util
Class RequestAttribute

java.lang.Object
  extended by oracle.stellent.wcm.client.util.RequestAttribute


public class RequestAttribute
extends java.lang.Object

Set an attribute on a given scope. Handles restoring previous value if already set.


Constructor Summary
RequestAttribute(RequestContext request, java.lang.String name)
           

 

Method Summary
 java.lang.String getName()
           
 java.lang.Object getPreviousValue()
           
 RequestContext getRequest()
           
 java.lang.Object getValue()
          Retrieve the attribute value stored at the given name and scope.
 void restorePreviousValue()
          Restore the previous value of the object at the current scope if a previous value existed.
 void setValue(java.lang.Object value)
          Set the value.

 

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

 

Constructor Detail

RequestAttribute

public RequestAttribute(RequestContext request,
                        java.lang.String name)

Method Detail

getRequest

public RequestContext getRequest()

getName

public java.lang.String getName()

getPreviousValue

public java.lang.Object getPreviousValue()

getValue

public java.lang.Object getValue()
Retrieve the attribute value stored at the given name and scope.
Returns:
the current attribute value or null if not set

setValue

public void setValue(java.lang.Object value)
Set the value. This will preserve the previous value at this position.
Parameters:
value - the value to set at the current scope.

restorePreviousValue

public void restorePreviousValue()
Restore the previous value of the object at the current scope if a previous value existed.

Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-02


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.