|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.urcsdk.client.ClientSession
public class ClientSession
ClientSession controls all session management for a socket.
Each session has its own copy of the socket's elements for local
variable manipulations.
Created on: Sep 19, 2004
| Field Summary | |
|---|---|
java.util.HashMap<java.lang.String,IUISocketElement> |
elementIdUISocketElementMap
|
| Constructor Summary | |
|---|---|
ClientSession(UISocketMirror socket,
java.lang.String sessionID)
Creates a new ClientSession instance. |
|
| Method Summary | |
|---|---|
static java.util.List<IInteractor> |
buildInteractors(UISocketMirror socket,
ClientSession session,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> interactorMap)
Build the Interactors for a UISocket |
void |
checkDependencies()
checkDependencies checks all the XPath dependencies related to this Session. |
void |
closeSession()
closeSession closes the Session with the target |
java.util.List<IInteractor> |
getInteractors()
getInteractors returns all the interactors for this session. |
java.lang.String |
getSessionId()
Gives this Session's unique ID |
UISocketMirror |
getSocket()
getSocket returns the Session's related UISocket |
java.util.List<IUISocketElement> |
getSocketElements()
getSocketElements returns all socket elements for the Session. |
IUISocketElement |
getUISocketElementById(java.lang.String id)
Return UISocketElement for a Id |
IUISocketElement |
getUISocketElementByRef(ElementRef ref)
Returns the specified socket element for the ElementRef |
void |
setClientSessionListener(IClientSessionListener clientSessionListener)
setClientSessionListener
Sets the client session listener passed through. |
protected void |
updateElementCsvList(java.lang.String elementIdCsvList,
java.lang.String valueCsvList)
Parses the CSV ElementId List and corresponding Value List. |
protected void |
updateElementState(java.lang.String elementId,
java.lang.Object value)
updateElementState
Updates the value of the element for this session. |
void |
updateUISocketElements()
updateUISocketElements
Updates all UISocketElements for this session |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.HashMap<java.lang.String,IUISocketElement> elementIdUISocketElementMap
| Constructor Detail |
|---|
public ClientSession(UISocketMirror socket,
java.lang.String sessionID)
throws UrcException
ClientSession instance.
socket - an UISocket valuesessionID - a String value
UrcException - If there was a problem constructing the session that was unrecoverable| Method Detail |
|---|
public void updateUISocketElements()
updateUISocketElements
Updates all UISocketElements for this session
protected void updateElementState(java.lang.String elementId,
java.lang.Object value)
updateElementState
Updates the value of the element for this session.
elementId - value -
protected void updateElementCsvList(java.lang.String elementIdCsvList,
java.lang.String valueCsvList)
elementIdCsvList - Comma Separated List of Element IdsvalueCsvList - Comma Separated List of Values
public static java.util.List<IInteractor> buildInteractors(UISocketMirror socket,
ClientSession session,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> interactorMap)
socket - session - interactorMap -
List of IInteractorpublic IUISocketElement getUISocketElementById(java.lang.String id)
id - a String value
IUISocketElement valuepublic IUISocketElement getUISocketElementByRef(ElementRef ref)
ref -
public java.lang.String getSessionId()
String value
public void closeSession()
throws UrcException
closeSession closes the Session with the target
UrcExceptionpublic java.util.List<IUISocketElement> getSocketElements()
getSocketElements returns all socket elements for the Session.
List of all socket elements for this sessionpublic UISocketMirror getSocket()
getSocket returns the Session's related UISocket
UISocket valuepublic java.util.List<IInteractor> getInteractors()
getInteractors returns all the interactors for this session.
List of all interactors for this sessionpublic void checkDependencies()
checkDependencies checks all the XPath dependencies related to this Session.
public void setClientSessionListener(IClientSessionListener clientSessionListener)
setClientSessionListener
Sets the client session listener passed through.
clientSessionListener -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||