public class HttpSessionFacade extends Object implements IScriptingFacade
Constructor and Description |
---|
HttpSessionFacade() |
Modifier and Type | Method and Description |
---|---|
static String |
getAttribute(String arg0)
Returns the object bound to the specified name
|
static String[] |
getAttributeNames()
Returns the attribute names.
|
static long |
getCreationTime()
Returns the time the session was created
|
static String |
getId()
Returns the id of the session
|
static long |
getLastAccessedTime()
Returns the last accessed time.
|
static int |
getMaxInactiveInterval()
Returns the max inactive interval.
|
static void |
invalidate()
Invalidates the session
|
static boolean |
isNew()
Checks if the session is new
|
static boolean |
isValid()
Checks if there is a session associated with the current thread context
|
static void |
removeAttribute(String arg0)
Removes the attribute.
|
static void |
setAttribute(String arg0,
String arg1)
Sets the attribute.
|
static void |
setMaxInactiveInterval(Double arg0)
Sets the max inactive interval.
|
static void |
setMaxInactiveInterval(int arg0)
Sets the max inactive interval.
|
public static final boolean isValid()
public static final String getAttribute(String arg0)
arg0
- the namepublic static final String[] getAttributeNames()
public static final long getCreationTime()
public static final String getId()
public static final long getLastAccessedTime()
public static final int getMaxInactiveInterval()
public static final void invalidate()
public static final boolean isNew()
public static final void setAttribute(String arg0, String arg1)
arg0
- the namearg1
- the valuepublic static final void removeAttribute(String arg0)
arg0
- the name of the attributepublic static final void setMaxInactiveInterval(int arg0)
arg0
- the new max inactive intervalpublic static final void setMaxInactiveInterval(Double arg0)
arg0
- the new max inactive intervalCopyright © 2010–2018 Eclipse Foundation. All rights reserved.