|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.adf.web.data.WebSession
public class WebSession
Stores the information pertinent to a web session.
| Field Summary | |
|---|---|
static java.lang.String |
SESSION_ATTRIBUTE_NAME
The name by which this object is typically referenced in the HttpSession. |
| Constructor Summary | |
|---|---|
WebSession()
Creates a new WebSession. |
|
WebSession(java.lang.String id)
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroys the WebSession. |
java.lang.Object |
getAttribute(java.lang.String name)
Returns a WebSession attribute by name. |
java.lang.String |
getId()
The ID of this session. |
byte[] |
getMimeData(java.lang.String id)
Return the MIME data from a Hashtable based the unique identifier. |
java.lang.String |
getName()
Returns the name under which this object is stored in session. |
WebApplication |
getWebApplication()
Deprecated. no replacement |
java.util.List<WebContext> |
getWebContexts()
Returns a {Map} of all the WebContexts associated with this WebSession. |
boolean |
hasMimeData(java.lang.String id)
|
boolean |
removeMimeData(java.lang.String id)
Remove the MIME data from a Hashtable based on the unique identifier. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets an attribute stored on the WebSession. |
void |
setId(java.lang.String id)
|
void |
setMimeData(java.lang.String id,
byte[] mimeData)
Adds the MIME data to a Hashtable. |
void |
setName(java.lang.String name)
Sets the name under which this object is stored in session. |
void |
setWebApplication(WebApplication application)
Deprecated. no replacement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SESSION_ATTRIBUTE_NAME
| Constructor Detail |
|---|
public WebSession()
public WebSession(java.lang.String id)
| Method Detail |
|---|
public java.lang.String getId()
String- the IDpublic void setId(java.lang.String id)
public java.util.List<WebContext> getWebContexts()
WebContexts associated with this WebSession.
List- the WebContexts
public void setAttribute(java.lang.String name,
java.lang.Object value)
name - the name of the attributevalue - the object to storepublic java.lang.Object getAttribute(java.lang.String name)
name - the name of the attribute
Object- the object stored in the attributepublic java.lang.String getName()
SESSION_ATTRIBUTE_NAME. But in some cases, for example in portlets, it may be stored under a
different name.
public void setName(java.lang.String name)
SESSION_ATTRIBUTE_NAME. But in some cases, for example in portlets, it may be stored under a
different name. NOTE: Do not call this method if not required. The name of the object is automatically set in the
valueBound method when this object is set in session.
name - the namepublic void destroy()
WebApplication.
public void setMimeData(java.lang.String id,
byte[] mimeData)
Hashtable.
id - the MIME identifiermimeData - the MIME data bytespublic byte[] getMimeData(java.lang.String id)
Hashtable based the unique identifier.
id - the MIME identifier
public boolean removeMimeData(java.lang.String id)
Hashtable based on the unique identifier.
id - the MIME identifier
public boolean hasMimeData(java.lang.String id)
@Deprecated public void setWebApplication(WebApplication application)
application - the WebApplication object associated with this session@Deprecated public WebApplication getWebApplication()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||