|
|||||||||
| 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 String |
SESSION_ATTRIBUTE_NAME
The name by which this object is typically referenced in the HttpSession. |
| Constructor Summary | |
|---|---|
WebSession()
Creates a new WebSession. |
|
WebSession(String id)
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroys the WebSession. |
Object |
getAttribute(String attrName)
Returns a WebSession attribute by name. |
String |
getCharacterEncoding()
|
String |
getId()
The ID of this session. |
byte[] |
getMimeData(String mimeid)
Return the MIME data from a Hashtable based the unique identifier. |
String |
getName()
Returns the name under which this object is stored in session. |
WebApplication |
getWebApplication()
Deprecated. no replacement |
List<WebContext> |
getWebContexts()
Returns a {Map} of all the WebContexts associated with this WebSession. |
boolean |
hasMimeData(String mimeid)
|
boolean |
removeMimeData(String mimeid)
Remove the MIME data from a Hashtable based on the unique identifier. |
void |
setAttribute(String name,
Object value)
Sets an attribute stored on the WebSession. |
void |
setCharacterEncoding(String characterEncoding)
|
void |
setId(String id)
|
void |
setMimeData(String id,
byte[] mimeData)
Adds the MIME data to a Hashtable. |
void |
setName(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 String SESSION_ATTRIBUTE_NAME
| Constructor Detail |
|---|
public WebSession()
public WebSession(String id)
| Method Detail |
|---|
public String getId()
String- the IDpublic void setId(String id)
public List<WebContext> getWebContexts()
WebContexts associated with this WebSession.
List- the WebContexts
public void setAttribute(String name,
Object value)
name - the name of the attributevalue - the object to storepublic Object getAttribute(String attrName)
attrName - the name of the attribute
Object- the object stored in the attributepublic String getName()
SESSION_ATTRIBUTE_NAME. But in some cases, for example in portlets, it may be stored under a
different name.
public void setCharacterEncoding(String characterEncoding)
characterEncoding - the characterEncoding to setpublic String getCharacterEncoding()
public void setName(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(String id,
byte[] mimeData)
Hashtable.
id - the MIME identifiermimeData - the MIME data bytespublic byte[] getMimeData(String mimeid)
Hashtable based the unique identifier.
mimeid - the MIME identifier
public boolean removeMimeData(String mimeid)
Hashtable based on the unique identifier.
mimeid - the MIME identifier
public boolean hasMimeData(String mimeid)
@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 | ||||||||