Milyn-Smooks Version 0.4

org.milyn.container.servlet
Class HttpServletContainerSession

java.lang.Object
  extended byorg.milyn.container.servlet.HttpServletContainerSession
All Implemented Interfaces:
BoundAttributeStore, ContainerSession

public class HttpServletContainerSession
extends java.lang.Object
implements ContainerSession

ContainerSession adapter for the javax.servlet.http.HttpSession interface.

Author:
tfennelly

Constructor Summary
HttpServletContainerSession(javax.servlet.http.HttpSession httpSession)
          Public constructor.
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
          Returns the object bound with the specified name in this BoundAttributeStore implementation, or null if no object is bound under the name.
 javax.servlet.http.HttpSession getHttpSession()
          Get the HttpSession instance associated with this ContainerSession implementation.
 void removeAttribute(java.lang.String name)
          Removes the object bound with the specified name from this BoundAttributeStore implementation.
 void setAttribute(java.lang.String name, java.lang.Object value)
          Binds an object to this BoundAttributeStore implementation, using the name specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServletContainerSession

public HttpServletContainerSession(javax.servlet.http.HttpSession httpSession)
Public constructor.

Parameters:
httpSession - HttpSession instance.
Method Detail

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Description copied from interface: BoundAttributeStore
Binds an object to this BoundAttributeStore implementation, using the name specified. If an object of the same name is already bound, the object is replaced.

Specified by:
setAttribute in interface BoundAttributeStore
Parameters:
name - The name to which the object is bound; cannot be null.
value - The object to be bound; cannot be null.

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Description copied from interface: BoundAttributeStore
Returns the object bound with the specified name in this BoundAttributeStore implementation, or null if no object is bound under the name.

Specified by:
getAttribute in interface BoundAttributeStore
Parameters:
name - The name to which the object is bound; cannot be null.
Returns:
The object bound with the specified name in this BoundAttributeStore implementation, or null if no object is bound under the name.

removeAttribute

public void removeAttribute(java.lang.String name)
Description copied from interface: BoundAttributeStore
Removes the object bound with the specified name from this BoundAttributeStore implementation. If the BoundAttributeStore implementation does not have an object bound with the specified name, this method does nothing.

Specified by:
removeAttribute in interface BoundAttributeStore
Parameters:
name - The name to which the object is bound; cannot be null.

getHttpSession

public javax.servlet.http.HttpSession getHttpSession()
Get the HttpSession instance associated with this ContainerSession implementation.

Returns:
HttpSession instance.

Milyn-Smooks Version 0.4