org.experlog.base
Class ESCookie

java.lang.Object
  extended by org.experlog.base.ESCookie
All Implemented Interfaces:
java.io.Serializable, DataObject, Cookie

public class ESCookie
extends java.lang.Object
implements Cookie, DataObject

A client cookie

See Also:
Serialized Form

Field Summary
protected  double lastmodified_
           
 
Constructor Summary
ESCookie(OpenClient session, javax.servlet.http.HttpServletRequest req, boolean usecookies, java.lang.String persistDs, int maxage)
           
 
Method Summary
 void clear()
          For use upon end of session Do NOT persist the cookie when cleared in that situation !
protected  void finalize()
           
 void fromHttpSession(javax.servlet.http.HttpSession s, AppConfiguration cnf, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp)
          Exchange method (from HttpSession to this class)
 java.lang.String get(java.lang.String name)
           
 java.util.Hashtable getInfo()
          MBean method get all attributes
 java.lang.Object getObject(java.lang.String name)
           
 void removeObject(java.lang.String name)
           
 void set(java.lang.String name, java.lang.Object val)
           
 void setCookie(ESServletRequest req)
           
 void setCookie(javax.servlet.http.HttpServletRequest req)
           
 void setInfo(java.util.Hashtable info)
          MBean method set all attributes
protected  void setLastModified(double date)
           
 void setObject(java.lang.String name, java.lang.Object obj)
           
protected  void setSession(OpenClient session)
           
 void toHttpSession(javax.servlet.http.HttpSession s)
          Exchange method (from this class to HttpSession)
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastmodified_

protected double lastmodified_
Constructor Detail

ESCookie

public ESCookie(OpenClient session,
                javax.servlet.http.HttpServletRequest req,
                boolean usecookies,
                java.lang.String persistDs,
                int maxage)
         throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setSession

protected void setSession(OpenClient session)
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

setLastModified

protected void setLastModified(double date)

setCookie

public void setCookie(javax.servlet.http.HttpServletRequest req)
               throws java.sql.SQLException
Specified by:
setCookie in interface Cookie
Throws:
java.sql.SQLException

setCookie

public void setCookie(ESServletRequest req)
               throws java.sql.SQLException
Specified by:
setCookie in interface Cookie
Throws:
java.sql.SQLException

get

public java.lang.String get(java.lang.String name)
                     throws java.sql.SQLException
Specified by:
get in interface DataObject
Specified by:
get in interface Cookie
Throws:
java.sql.SQLException

set

public void set(java.lang.String name,
                java.lang.Object val)
         throws java.sql.SQLException
Specified by:
set in interface Cookie
Throws:
java.sql.SQLException

clear

public void clear()
For use upon end of session Do NOT persist the cookie when cleared in that situation !


finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

toHttpSession

public void toHttpSession(javax.servlet.http.HttpSession s)
                   throws java.sql.SQLException
Exchange method (from this class to HttpSession)

Specified by:
toHttpSession in interface Cookie
Throws:
java.sql.SQLException

fromHttpSession

public void fromHttpSession(javax.servlet.http.HttpSession s,
                            AppConfiguration cnf,
                            javax.servlet.http.HttpServletRequest req,
                            javax.servlet.http.HttpServletResponse rsp)
                     throws java.sql.SQLException
Exchange method (from HttpSession to this class)

Specified by:
fromHttpSession in interface Cookie
Throws:
java.sql.SQLException

getInfo

public java.util.Hashtable getInfo()
MBean method get all attributes

Specified by:
getInfo in interface Cookie

setInfo

public void setInfo(java.util.Hashtable info)
MBean method set all attributes

Specified by:
setInfo in interface Cookie

setObject

public void setObject(java.lang.String name,
                      java.lang.Object obj)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

getObject

public java.lang.Object getObject(java.lang.String name)
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

removeObject

public void removeObject(java.lang.String name)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException