|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectabk.j2ee.HttpSessionWrapper
public abstract class HttpSessionWrapper
Implementa un wrapper de HttpSession, de forma semejante a como hacen HttpServletRequestWrapper y HttpServletResponseWrapper.
| Field Summary | |
|---|---|
private static long |
serialVersionUID
|
private javax.servlet.http.HttpSession |
session
Sesión HTTP a la que está vincula la instancia de HttpSessionWrapper. |
| Constructor Summary | |
|---|---|
|
HttpSessionWrapper()
Deprecated. No debe usarse directamente, únicamente se implementa para el proceso de deserialización. |
protected |
HttpSessionWrapper(javax.servlet.http.HttpSession session)
Constructor a partir de una sesió:n ya existente. |
| Method Summary | |
|---|---|
Object |
getAttribute(String string)
|
Enumeration<String> |
getAttributeNames()
|
long |
getCreationTime()
|
String |
getId()
|
long |
getLastAccessedTime()
|
int |
getMaxInactiveInterval()
|
javax.servlet.ServletContext |
getServletContext()
|
javax.servlet.http.HttpSession |
getSession()
|
javax.servlet.http.HttpSessionContext |
getSessionContext()
Deprecated. |
Object |
getValue(String string)
Deprecated. |
String[] |
getValueNames()
Deprecated. |
void |
invalidate()
|
boolean |
isNew()
|
void |
putValue(String string,
Object object)
Deprecated. |
void |
removeAttribute(String string)
|
void |
removeValue(String string)
Deprecated. |
void |
setAttribute(String string,
Object object)
|
void |
setMaxInactiveInterval(int i)
|
protected void |
setSession(javax.servlet.http.HttpSession session)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private transient javax.servlet.http.HttpSession session
| Constructor Detail |
|---|
protected HttpSessionWrapper(javax.servlet.http.HttpSession session)
session - Sesión que encapsulamos.
IllegalArgumentException - si session es nulo.@Deprecated public HttpSessionWrapper()
| Method Detail |
|---|
public javax.servlet.http.HttpSession getSession()
protected void setSession(javax.servlet.http.HttpSession session)
public long getCreationTime()
getCreationTime in interface javax.servlet.http.HttpSessionpublic String getId()
getId in interface javax.servlet.http.HttpSessionpublic long getLastAccessedTime()
getLastAccessedTime in interface javax.servlet.http.HttpSessionpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.http.HttpSessionpublic void setMaxInactiveInterval(int i)
setMaxInactiveInterval in interface javax.servlet.http.HttpSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface javax.servlet.http.HttpSession@Deprecated public javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext in interface javax.servlet.http.HttpSessionpublic Object getAttribute(String string)
getAttribute in interface javax.servlet.http.HttpSession@Deprecated public Object getValue(String string)
getValue in interface javax.servlet.http.HttpSessionpublic Enumeration<String> getAttributeNames()
getAttributeNames in interface javax.servlet.http.HttpSession@Deprecated public String[] getValueNames()
getValueNames in interface javax.servlet.http.HttpSession
public void setAttribute(String string,
Object object)
setAttribute in interface javax.servlet.http.HttpSession
@Deprecated
public void putValue(String string,
Object object)
putValue in interface javax.servlet.http.HttpSessionpublic void removeAttribute(String string)
removeAttribute in interface javax.servlet.http.HttpSession@Deprecated public void removeValue(String string)
removeValue in interface javax.servlet.http.HttpSessionpublic void invalidate()
invalidate in interface javax.servlet.http.HttpSessionpublic boolean isNew()
isNew in interface javax.servlet.http.HttpSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||