| 
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Information about the current customer's session is stored
 in the PipelineSession.  For example the following 
 information about the current customer is stored in PipelineSession.
 
 
ShoppingCart 
 PipelineSession allows attributes when added, to be scoped. The allowed scopes are:
PipelineConstants.PIPELINE_SESSION_SCOPE. The attributes added with this
 scope are available till the end of the current HttpSession.
 PipelineConstants.REQUEST_SCOPE. The attributes added with this scope
 are availabe till the end of the current HttpServletRequest.
 
PipelineConstants| Method Summary | |
 void | 
clearAttributes()
Removes all the attributes from the PipelineSession. | 
 void | 
clearAttributes(int scope)
Removes all the attributes from the PipelineSession. | 
 boolean | 
containsAttribute(java.lang.String key)
Returns true if the given key is present in the PipelineSession. | 
 boolean | 
containsAttribute(java.lang.String key,
                  int scope)
Returns true if the given key is present in the PipelineSession. | 
 java.lang.Object | 
getAttribute(java.lang.String key)
Gets the named attribute from the PipelineSession. | 
 java.lang.Object | 
getAttribute(java.lang.String key,
             int scope)
Gets the named attribute from the PipelineSession. | 
 java.util.Hashtable | 
getAttributeMap(int scope)
Gets the list of all attributes in the given scope as a Hashtable.  | 
 java.util.Enumeration | 
getElements()
Gets the list of all elements in the PipelineSession. | 
 java.util.Enumeration | 
getElements(int scope)
Gets the list of all elements in the PipelineSession. | 
 java.util.Enumeration | 
getKeys()
Gets the list of all keys in the PipelineSession. | 
 java.util.Enumeration | 
getKeys(int scope)
Gets the list of all keys in the PipelineSession. | 
 java.lang.Object | 
removeAttribute(java.lang.String key)
Removes the key and the element from the PipelineSession. | 
 java.lang.Object | 
removeAttribute(java.lang.String key,
                int scope)
Removes the key and the element from the PipelineSession. | 
 void | 
setAttribute(java.lang.String key,
             java.lang.Object attribute)
Adds the named attribute to the PipelineSession. | 
 void | 
setAttribute(java.lang.String key,
             java.lang.Object attribute,
             int scope)
Adds the named attribute to the PipelineSession. | 
 void | 
setAttributeMap(java.util.Hashtable attrMap,
                int scope)
Sets the given Hashtable to the specified scope.  | 
| Method Detail | 
public void setAttribute(java.lang.String key,
                         java.lang.Object attribute)
PipelineSession.
 This method adds the key to the PipelineConstants.PIPELINE_SESSION_SCOPE.
 The supported scopes are:
 
      PipelineConstants.PIPELINE_SESSION_SCOPE
      PipelineConstants.REQUEST_SCOPE
 
 The attributes added using this API are available till the end of the current HttpSession.
 If the key already exists, then the key is overwritten.String - the name of the attribute.Object - the attribute.
public void setAttribute(java.lang.String key,
                         java.lang.Object attribute,
                         int scope)
PipelineSession.
 This method adds the key to the given scope.
 The supported scopes are:
 
      PipelineConstants.PIPELINE_SESSION_SCOPE
      PipelineConstants.REQUEST_SCOPE
 
 If the scope is PipelineConstants.REQUEST_SCOPE the attributes added using this API are
 available till the end of the current HttpServletRequest.  Otherwise the attribute are
 available till the end of the current HttpSession.
 If the key already exists, then the key is overwritten.String - the name of the attribute.Object - the attribute.int - the scope of this attribute.public java.lang.Object getAttribute(java.lang.String key)
PipelineSession.
 If the attribute is not present in the PipelineConstants.PIPELINE_SESSION_SCOPE
 then this will return null.String - the name of the attribute.
public java.lang.Object getAttribute(java.lang.String key,
                                     int scope)
PipelineSession.
 If the attribute is not available in the given scope
 then this will return null.String - the name of the attribute.int - the scope in which to look for this attribute.public java.util.Hashtable getAttributeMap(int scope)
int - scope.
public void setAttributeMap(java.util.Hashtable attrMap,
                            int scope)
Hashtable - the attribute map.int - the scope to which this map is to be set.public java.util.Enumeration getKeys()
PipelineSession.
 Returns an enumeration of all the keys that belong 
 to the PipelineConstants.PIPELINE_SESSION_SCOPE.PipelineConstants.PIPELINE_SESSION_SCOPE.public java.util.Enumeration getKeys(int scope)
PipelineSession.
 Returns an enumeration of all the keys that belong to the given scope.int - the scope.public java.util.Enumeration getElements()
PipelineSession.
 Returns an enumeration of all the elements that belong 
 to the PipelineConstants.PIPELINE_SESSION_SCOPE.PipelineConstants.PIPELINE_SESSION_SCOPE.public java.util.Enumeration getElements(int scope)
PipelineSession.
 Returns an enumeration of all the elements that belong to the given scope.int - the scope.public boolean containsAttribute(java.lang.String key)
PipelineSession.
 If the given key belongs to the PipelineConstants.PIPELINE_SESSION_SCOPE
 then this method returns true.String - the name of the attribute to look for.PipelineConstants.PIPELINE_SESSION_SCOPE.
public boolean containsAttribute(java.lang.String key,
                                 int scope)
PipelineSession.
 If the given key belongs in the given scope then this method returns true.String - the name of the attribute to look for.int - the scope in which to look for.public java.lang.Object removeAttribute(java.lang.String key)
PipelineSession.
 If the given key is present in the PipelineConstants.PIPELINE_SESSION_SCOPE,
 then this method removes the key and returns the element.  Otherwise returns null.String - the name of the attribute to be removed.
public java.lang.Object removeAttribute(java.lang.String key,
                                        int scope)
PipelineSession.
 If the given key is present in the given scope, then this method 
 removes the key and returns the element.  Otherwise returns null.String - the name of the attribute to be removed.int - the scope in which to look for.public void clearAttributes()
PipelineSession.
 Removes all the attributes that belong to the PipelineConstants.PIPELINE_SESSION_SCOPE.public void clearAttributes(int scope)
PipelineSession.
 Removes all the attributes that belong to the given scope.int - the scope from which all the attributes are to be removed.
  | 
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||