public class BasicHttpSession extends Object implements javax.servlet.http.HttpSession
Constructor and Description |
---|
BasicHttpSession() |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name)
Returns attribute value by name.
|
Enumeration<String> |
getAttributeNames()
Returns attribute enumeration.
|
long |
getCreationTime()
Returns time this object was created.
|
String |
getId()
Returns ID based on timestamp.
|
long |
getLastAccessedTime()
Returns zero.
|
int |
getMaxInactiveInterval()
Returns zero.
|
javax.servlet.ServletContext |
getServletContext()
Returns null.
|
javax.servlet.http.HttpSessionContext |
getSessionContext()
Returns null.
|
Object |
getValue(String name)
Returns the value of the attribute.
|
String[] |
getValueNames()
Returns the value names.
|
void |
invalidate()
Clears attributes.
|
boolean |
isNew()
Returns true.
|
void |
putValue(String name,
Object value)
Puts the value.
|
void |
removeAttribute(String name)
Removes an attribute by name.
|
void |
removeValue(String name)
Removes a value by name.
|
void |
setAttribute(String name,
Object arg1)
Sets an attribute.
|
void |
setMaxInactiveInterval(int arg0)
Sets inactive interval.
|
public Object getAttribute(String name)
getAttribute
in interface javax.servlet.http.HttpSession
public Enumeration<String> getAttributeNames()
getAttributeNames
in interface javax.servlet.http.HttpSession
public long getCreationTime()
getCreationTime
in interface javax.servlet.http.HttpSession
public String getId()
getId
in interface javax.servlet.http.HttpSession
public long getLastAccessedTime()
getLastAccessedTime
in interface javax.servlet.http.HttpSession
public int getMaxInactiveInterval()
getMaxInactiveInterval
in interface javax.servlet.http.HttpSession
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.http.HttpSession
public javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext
in interface javax.servlet.http.HttpSession
public Object getValue(String name)
getValue
in interface javax.servlet.http.HttpSession
public String[] getValueNames()
getValueNames
in interface javax.servlet.http.HttpSession
public void invalidate()
invalidate
in interface javax.servlet.http.HttpSession
public boolean isNew()
isNew
in interface javax.servlet.http.HttpSession
public void putValue(String name, Object value)
putValue
in interface javax.servlet.http.HttpSession
public void removeAttribute(String name)
removeAttribute
in interface javax.servlet.http.HttpSession
public void removeValue(String name)
removeValue
in interface javax.servlet.http.HttpSession
public void setAttribute(String name, Object arg1)
setAttribute
in interface javax.servlet.http.HttpSession
public void setMaxInactiveInterval(int arg0)
setMaxInactiveInterval
in interface javax.servlet.http.HttpSession
Copyright © 2012. All Rights Reserved.