|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.author.toc.AMSessionInfo
public class AMSessionInfo
A class that contains a set of strings describing an activemath session.
| Constructor Summary | |
|---|---|
AMSessionInfo()
Constructs an empty AMSessionInfo object |
|
AMSessionInfo(AMSessionInfo otherSession)
Constructs a new AMSessionInfo object, copying the parameters of the given session. |
|
AMSessionInfo(URL toceditServletURL,
String userName,
String sessionName,
String language)
Constructs an AMSessionInfo object with given serverName, userName, sessionName and default language |
|
| Method Summary | |
|---|---|
boolean |
check()
asks the server if the session described by this AMSessionInfo objectis available. |
boolean |
equals(AMSessionInfo otherSession)
tests if two AMSessionInfo objects describe exactly the same session. |
String |
getLanguage()
returns the default language stored in this AMSessionInfo object. |
int |
getPage()
returns the current page number the learner was reading last time |
String |
getSessionName()
returns the sessionName stored in this AMSessionInfo object. |
URL |
getToceditServletURL()
returns the serverName stored in this AMSessionInfo object. |
URL |
getTocEditServletURL()
|
String |
getUserName()
returns the userName stored in this AMSessionInfo object. |
boolean |
isEmpty()
checks if this AMSessionInfo object contains any data. |
void |
setLanguage(String newLanguage)
replaces the language string stored in this AMSessionInfo object by a given string. |
void |
setPage(int page)
sets the current page number |
void |
setSessionName(String newSessionName)
replaces the session name stored in this AMSessionInfo object by a given name. |
void |
setToceditServletURL(URL newToceditServletURL)
replaces the server name stored in this AMSessionInfo object by a given name. |
void |
setUserName(String newUserName)
replaces the user name stored in this AMSessionInfo object by a given userName. |
String |
toString()
produces a brief String representation of this AMSessionInfo object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AMSessionInfo()
public AMSessionInfo(URL toceditServletURL,
String userName,
String sessionName,
String language)
serverName - name of the activemath server, without
protocol and port.userName - username to usesessionName - sessionNamelanguage - default languagepublic AMSessionInfo(AMSessionInfo otherSession)
otherSession - The session to take parameters from.| Method Detail |
|---|
public boolean equals(AMSessionInfo otherSession)
public String getUserName()
public URL getToceditServletURL()
public String getSessionName()
public String getLanguage()
public int getPage()
public void setUserName(String newUserName)
newUserName - the new user name to store.public void setToceditServletURL(URL newToceditServletURL)
newServerName - the new server name to store.public URL getTocEditServletURL()
public void setSessionName(String newSessionName)
newSessionName - the new session name to store.public void setLanguage(String newLanguage)
newLanguage - the new language name to store.public void setPage(int page)
public boolean isEmpty()
public String toString()
toString in class Objectpublic boolean check()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||