Expresso 5-6

com.jcorporate.expresso.core.jsdkapi
Class ServletAPI2_1Session

java.lang.Object
  extended bycom.jcorporate.expresso.core.jsdkapi.ServletAPI2_1Session
All Implemented Interfaces:
APIAwareSession

Deprecated. since 5.6, Servlet 2.1 is not supported

public class ServletAPI2_1Session
extends Object
implements APIAwareSession


Constructor Summary
ServletAPI2_1Session()
          Deprecated.  
 
Method Summary
 Serializable getAttribute(HttpServletRequest req, String code)
          Deprecated. Retrieve any other object
 Enumeration getAttributeNames(HttpServletRequest req)
          Deprecated. Retrieve all attribute names
 String getContextPath(HttpServletRequest req)
          Deprecated. Retrieve the context path
 String getId(HttpServletRequest req)
          Deprecated. Retrieve the session id
 void invalidate(HttpServletRequest req)
          Deprecated. Invalidate the session
 void removeAttribute(HttpServletRequest req, String code)
          Deprecated. Remove an attribute from the session
 void setAttribute(HttpServletRequest req, String code, Serializable value)
          Deprecated. Store a String (wrapped in a SerializableString) in the session
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletAPI2_1Session

public ServletAPI2_1Session()
Deprecated. 
Method Detail

getAttribute

public Serializable getAttribute(HttpServletRequest req,
                                 String code)
                          throws ServletException
Deprecated. 
Retrieve any other object

Specified by:
getAttribute in interface APIAwareSession
Parameters:
req - The servlet request object
code - the attribute key
Returns:
the attribute value object
Throws:
ServletException - upon error

getAttributeNames

public Enumeration getAttributeNames(HttpServletRequest req)
                              throws ServletException
Deprecated. 
Retrieve all attribute names

Specified by:
getAttributeNames in interface APIAwareSession
Parameters:
req - the servlet request object
Returns:
an Enumeration of all the names in the session
Throws:
ServletException - upon error

setAttribute

public void setAttribute(HttpServletRequest req,
                         String code,
                         Serializable value)
                  throws ServletException
Deprecated. 
Store a String (wrapped in a SerializableString) in the session

Specified by:
setAttribute in interface APIAwareSession
Parameters:
req - The HttpServletRequest object
code - the attribute code
value - the attribute value
Throws:
ServletException

removeAttribute

public void removeAttribute(HttpServletRequest req,
                            String code)
                     throws ServletException
Deprecated. 
Remove an attribute from the session

Specified by:
removeAttribute in interface APIAwareSession
Parameters:
req - the servletrequest object
code - the attribute key
Throws:
ServletException - upon error

invalidate

public void invalidate(HttpServletRequest req)
Deprecated. 
Invalidate the session

Specified by:
invalidate in interface APIAwareSession
Parameters:
req - the servlet request object
Throws:
ServletException - upon error

getId

public String getId(HttpServletRequest req)
Deprecated. 
Retrieve the session id

Specified by:
getId in interface APIAwareSession
Parameters:
req - the servlet request
Returns:
the session id string
Throws:
ServletException - upon error

getContextPath

public String getContextPath(HttpServletRequest req)
Deprecated. 
Retrieve the context path

Specified by:
getContextPath in interface APIAwareSession
Parameters:
req - the servlet request object
Returns:
the string for the servlet context path
Throws:
ServletException - upon error

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.