Skip navigation links

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

E17273-03


oracle.stellent.wcm.common.servlet
Class ServletAttribute

java.lang.Object
  extended by oracle.stellent.wcm.common.servlet.ServletAttribute


public class ServletAttribute
extends java.lang.Object

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


Constructor Summary
ServletAttribute(javax.servlet.http.HttpServletRequest request, java.lang.String name)
           
ServletAttribute(javax.servlet.http.HttpServletRequest request, java.lang.String name, int scope)
           

 

Method Summary
 java.lang.String getName()
           
 java.lang.Object getPreviousValue()
           
 javax.servlet.http.HttpServletRequest getRequest()
           
 int getScope()
           
 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

ServletAttribute

public ServletAttribute(javax.servlet.http.HttpServletRequest request,
                        java.lang.String name)

ServletAttribute

public ServletAttribute(javax.servlet.http.HttpServletRequest request,
                        java.lang.String name,
                        int scope)

Method Detail

getRequest

public javax.servlet.http.HttpServletRequest getRequest()

getName

public java.lang.String getName()

getPreviousValue

public java.lang.Object getPreviousValue()

getScope

public int getScope()

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® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


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