|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.uch.UIPMListener
public class UIPMListener
Implements the methods of IUIPMListener. Also maintain information about UIPMs and their session.
| Constructor Summary | |
|---|---|
UIPMListener(UCH uch)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
addCompatibleUI(String targetId,
List<String> socketNames,
String protocolShortName,
List<String> uris,
Map<String,List<String>> protocolInfo)
Tell the UCH to add a user interface item (advertised by the UIPM) to its UIList which is exposed to controllers on request. |
void |
addUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
Called when the UIPM wants to add one or more contexts to a URI service. |
void |
closeSession(String sessionId)
Closes a Session for the specified sessionId. |
List<String> |
getAvailableTargetIds(Map<String,IProfile> context)
Get the identifiers of the available targets. |
List<Map<String,IProfile>> |
getContexts()
Get currently open contexts. |
boolean |
getDependencyValue(String sessionId,
String path,
String dependency)
Get the actual value of a dependency. |
String |
getDocument(String uri,
String postData,
Map<String,IProfile> context)
Get specified document through HTTP GET or POST. |
String |
getElementRef(String sessionId,
String path)
Get the elementRef URI that points to a particular socket element/set. |
List<Set<String>> |
getIndices(String sessionId,
List<String> eltIds,
List<Integer> indexNos)
Get Indices available on specific level of dimension of dimensional Element. |
String |
getIpAddress()
Get the IP address of the UCH. |
IUCHStore |
getLocalUCHStore()
Get the Local UCH Store. |
Map<String,String> |
getLocators(String targetName)
Get a map of locatores containing locatorId and locatorType for a specified target Name. |
List<List<Map<String,List<String>>>> |
getResources(String sessionId,
List<Map<String,List<String>>> resProps)
Get resource from the UCH specified by Resource Properties. |
String |
getSocketDescriptionUri(String targetName,
String socketName)
Get the URI for retrieving the Socket Description of the specified targetName and socketName. |
String |
getSocketFriendlyName(String targetId,
String socketName)
Get Friendly Name of the Socket for the specified socketName and targetId. |
String |
getSocketName(String sessionId)
Get the SocketName for the specified sessionId. |
List<String> |
getSocketNames(String targetName)
Returns List of socket Names for the specified Target Name. |
List<Map<String,IProfile>> |
getTargetContexts(String targetId)
Get list of contexts for which a target is available. |
String |
getTargetDescriptionUri(String targetName)
Get the URI for retrieving the Target Description for the specified targetName. |
String |
getTargetName(String targetId)
Get the name of a target for the specified targetId. |
Map<String,Object> |
getTargetProps(String targetId)
Get the target Properties for the specified targetId. |
Map<String,String> |
getUCHProps()
Get the UCH Properties. |
Map<String,String> |
getValues(String sessionId,
List<String> paths,
List<Boolean> includeSets)
Returns a value/state of the specified socket elements. |
void |
invokeLocator(String targetId,
String locatorId)
Invoke the specified locator function of the specified targetId. |
boolean |
isElementAvailable(String targetId,
String socketName,
String elementId)
Checks whether a given socketElement is available in the specified Socket of specified Target or not. |
boolean |
isImplemented(String functionName)
Checks whether specified function is implemented or not. |
boolean |
isSessionResumable(String sessionId)
Checks whether the given session can be resumed. |
boolean |
isSessionSuspendable(String sessionId)
Check whether the given session can be suspended. |
Map<String,String> |
openSessionRequest(IUIPM uipm,
String targetId,
String socketName,
Map<String,String> clientProps,
Map<String,IProfile> context)
Request for opening a session with the specified target and socket. |
void |
removeCompatibleUIs(List<String> uris)
Tells the UCH to remove user interface URIs from the UIList that were previously added by addCompatibleUI(). |
void |
removeUIPM(IUIPM uipm)
Removes the specified uipm from the UCH. |
void |
removeUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
Called when the UIPM wants to close one or more contexts to a URI service. |
boolean |
resumeSession(String sessionId)
The target is requested to resume the given session. |
Map<String,List<String>> |
setValuesRequest(String sessionId,
List<String> paths,
List<String> operations,
List<String> reqValues)
The UIPM requests to change the target state in one or more operations on specified socket elements. |
String |
startUriService(IUIPM uipm,
String scheme,
int port,
boolean portIsFlexible,
String basePath,
boolean basePathIsFlexible,
List<Map<String,IProfile>> contexts)
The UIPM requests the UCH to start servicing a URI which is made up of a given scheme, port, and base path. |
void |
stopUriService(String uri)
The UIPM requests the UCH to stop servicing a URI that was requested to be serviced in a previous call to startUriService(). |
long |
suspendSession(String sessionId,
long suggestedTimeout)
The target is requested to suspend the given session with a suggested timeout value. |
List<Map<String,String>> |
uploadResources(List<Map<String,List<String>>> props,
List<String> resourceUri)
Upload Resources on Resource Server. |
boolean |
validateValue(String sessionId,
String path,
String value)
Checks whether value is valid or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UIPMListener(UCH uch)
uch - an Object of UCH| Method Detail |
|---|
public boolean addCompatibleUI(String targetId,
List<String> socketNames,
String protocolShortName,
List<String> uris,
Map<String,List<String>> protocolInfo)
throws UCHException
IUIPMListener
addCompatibleUI in interface IUIPMListenertargetId - a String value of targetIdsocketNames - a List<String> value of socketNamesprotocolShortName - a String value of protocolShortNameuris - a List<String> value of urisprotocolInfo - a Map<String, List<String>> of protocol Information
UCHException - an Object of UCHExceptionIUIPMListener.addCompatibleUI(String, List, String, List, Map)public void closeSession(String sessionId)
IUIPMListener
closeSession in interface IUIPMListenersessionId - a String value of sessionIdIUIPMListener.closeSession(java.lang.String)public List<String> getAvailableTargetIds(Map<String,IProfile> context)
IUIPMListener
getAvailableTargetIds in interface IUIPMListenercontext - a Map<String, IProfile> of user and controller profile
IUIPMListener.getAvailableTargetIds(Map)
public String getDocument(String uri,
String postData,
Map<String,IProfile> context)
throws UCHException
IUIPMListener
getDocument in interface IUIPMListeneruri - a String value of URIpostData - a String value of postDatacontext - a Map<String, IProfile> of user and controller profile
UCHException - an Object of UCHExceptionIUIPMListener.getDocument(String, String, Map)
public List<Set<String>> getIndices(String sessionId,
List<String> eltIds,
List<Integer> indexNos)
IUIPMListener
getIndices in interface IUIPMListenersessionId - a String value of sessionIdeltIds - a List<String> of elementIdsindexNos - a List<Integer> of indexNo
IUIPMListener.getIndices(String, List, List)public String getIpAddress()
IUIPMListener
getIpAddress in interface IUIPMListenerIUIPMListener.getIpAddress()public IUCHStore getLocalUCHStore()
IUIPMListener
getLocalUCHStore in interface IUIPMListenerIUIPMListener.getLocalUCHStore()public Map<String,String> getLocators(String targetName)
IUIPMListener
getLocators in interface IUIPMListenertargetName - a String value of targetName
IUIPMListener.getLocators(String)
public List<List<Map<String,List<String>>>> getResources(String sessionId,
List<Map<String,List<String>>> resProps)
IUIPMListener
getResources in interface IUIPMListenersessionId - a String value of sessionIdresProps - a Map<String, List<String>> of Resource Properties
IUIPMListener.getResources(String, List)
public String getSocketDescriptionUri(String targetName,
String socketName)
IUIPMListener
getSocketDescriptionUri in interface IUIPMListenertargetName - a String value of targetNamesocketName - a String value of socketName
IUIPMListener.getSocketDescriptionUri(java.lang.String, java.lang.String)
public String getSocketFriendlyName(String targetId,
String socketName)
IUIPMListener
getSocketFriendlyName in interface IUIPMListenertargetId - a String value of targetIdsocketName - a String value of socketName
IUIPMListener.getSocketFriendlyName(java.lang.String, java.lang.String)public String getSocketName(String sessionId)
IUIPMListener
getSocketName in interface IUIPMListenersessionId - a String value of sessionId
IUIPMListener.getSocketName(java.lang.String)public List<String> getSocketNames(String targetName)
IUIPMListener
getSocketNames in interface IUIPMListenertargetName - a String value of targetName
IUIPMListener.getSocketNames(java.lang.String)public String getTargetDescriptionUri(String targetName)
IUIPMListener
getTargetDescriptionUri in interface IUIPMListenertargetName - a String value of targetName
IUIPMListener.getTargetDescriptionUri(java.lang.String)public String getTargetName(String targetId)
IUIPMListener
getTargetName in interface IUIPMListenertargetId - a String value of targetId
IUIPMListener.getTargetName(java.lang.String)public Map<String,Object> getTargetProps(String targetId)
IUIPMListener
getTargetProps in interface IUIPMListenertargetId - a String value of targetId
IUIPMListener.getTargetProps(java.lang.String)public Map<String,String> getUCHProps()
getUCHProps in interface IUIPMListener
public Map<String,String> getValues(String sessionId,
List<String> paths,
List<Boolean> includeSets)
IUIPMListener
getValues in interface IUIPMListenersessionId - a String value of sessionIdpaths - a List<String> of elementPathincludeSets - a List<Boolean> of includeSets
IUIPMListener.getValues(String, List, List)
public void invokeLocator(String targetId,
String locatorId)
IUIPMListener
invokeLocator in interface IUIPMListenertargetId - a String value of TargetIdlocatorId - a String value of LocatorIdIUIPMListener.invokeLocator(String, String)
public boolean isElementAvailable(String targetId,
String socketName,
String elementId)
IUIPMListener
isElementAvailable in interface IUIPMListenertargetId - a String value of targetIdsocketName - a String value of socketNameelementId - a String value of eltId
IUIPMListener.isElementAvailable(java.lang.String, java.lang.String, java.lang.String)public boolean isImplemented(String functionName)
IUIPMListener
isImplemented in interface IUIPMListenerfunctionName - a String value of function Name
IUIPMListener.isImplemented(java.lang.String)
public Map<String,String> openSessionRequest(IUIPM uipm,
String targetId,
String socketName,
Map<String,String> clientProps,
Map<String,IProfile> context)
IUIPMListener
openSessionRequest in interface IUIPMListenertargetId - a String value of targetIdsocketName - a String value of socketNameclientProps - Map<String,String>context - a Map<String, IProfile> of user and controller profile
IUIPMListener.openSessionRequest(IUIPM, String, String, Map, Map)
public void removeCompatibleUIs(List<String> uris)
throws UCHException
IUIPMListener
removeCompatibleUIs in interface IUIPMListeneruris - a List<String> of URIs
UCHException - an Object of UCHExceptionIUIPMListener.removeCompatibleUIs(List)public void removeUIPM(IUIPM uipm)
IUIPMListener
removeUIPM in interface IUIPMListeneruipm - an Object of IUIPMIUIPMListener.removeUIPM(IUIPM)
public Map<String,List<String>> setValuesRequest(String sessionId,
List<String> paths,
List<String> operations,
List<String> reqValues)
IUIPMListener
setValuesRequest in interface IUIPMListenersessionId - a String value of sessionIdpaths - List<String> a List of elementPathsoperations - List<String> a List of operations (allowed operations are "S", "A", "R", "I" or "K" )reqValues - List<String> a List of Requested Values
IUIPMListener.setValuesRequest(java.lang.String, java.util.List, java.util.List, java.util.List)
public List<Map<String,String>> uploadResources(List<Map<String,List<String>>> props,
List<String> resourceUri)
IUIPMListener
uploadResources in interface IUIPMListenerprops - an Object of List<Map<String, List<String>>>resourceUri - an Object of List<String>
IUIPMListener.uploadResources(List, List)
public String startUriService(IUIPM uipm,
String scheme,
int port,
boolean portIsFlexible,
String basePath,
boolean basePathIsFlexible,
List<Map<String,IProfile>> contexts)
throws UCHException
IUIPMListener
startUriService in interface IUIPMListeneruipm - an IUIPM objectscheme - a String value of schemaport - a port noportIsFlexible - a boolean valuebasePath - a String value of basePathbasePathIsFlexible - a boolean valuecontexts - a List<Map<String, IProfile>> of user and controller profile map
UCHException - an Object of UCHExceptionIUIPMListener.startUriService(IUIPM, String, int, boolean, String, boolean, List)
public void stopUriService(String uri)
throws UCHException
IUIPMListener
stopUriService in interface IUIPMListeneruri - a String value of URI
UCHException - an Object of UCHExceptionIUIPMListener.stopUriService(java.lang.String)
public boolean getDependencyValue(String sessionId,
String path,
String dependency)
throws UCHNotImplementedException
IUIPMListener
getDependencyValue in interface IUIPMListenersessionId - a String value of sessionIdpath - a String value of pathdependency - a String value of dependency
UCHNotImplementedException - an Object of UCHNotImplementedExceptionIUIPMListener.getDependencyValue(String, String, String)
public String getElementRef(String sessionId,
String path)
throws UCHNotImplementedException
IUIPMListener
getElementRef in interface IUIPMListenersessionId - a String value of sessionIdpath - a String value of path
UCHNotImplementedException - an Object of UCHNotImplementedExceptionIUIPMListener.getElementRef(String, String)
public boolean isSessionResumable(String sessionId)
throws UCHNotImplementedException
IUIPMListener
isSessionResumable in interface IUIPMListenersessionId - a String value of sessionId
UCHNotImplementedException - an Object of UCHNotImplementedExceptionIUIPMListener.isSessionResumable(String)
public boolean isSessionSuspendable(String sessionId)
throws UCHNotImplementedException
IUIPMListener
isSessionSuspendable in interface IUIPMListenersessionId - a String value of sessionId
UCHNotImplementedException - an Object of UCHNotImplementedExceptionIUIPMListener.isSessionSuspendable(String)
public boolean resumeSession(String sessionId)
throws UCHNotImplementedException
IUIPMListener
resumeSession in interface IUIPMListenersessionId - a String value of sessionId
UCHNotImplementedException - an Object of UCHNotImplementedExceptionIUIPMListener.resumeSession(String)
public long suspendSession(String sessionId,
long suggestedTimeout)
throws UCHNotImplementedException
IUIPMListener
suspendSession in interface IUIPMListenersessionId - a String value of sessionIdsuggestedTimeout - a long value
UCHNotImplementedException - an Object of UCHNotImplementedExceptionIUIPMListener.suspendSession(String, long)
public boolean validateValue(String sessionId,
String path,
String value)
throws UCHNotImplementedException
IUIPMListener
validateValue in interface IUIPMListenersessionId - a String value of sessionIdpath - a String value of pathvalue - a String value
UCHNotImplementedException - an Object of UCHNotImplementedExceptionIUIPMListener.validateValue(String, String, String)
public void addUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
throws UCHException
IUIPMListener
addUriServiceContexts in interface IUIPMListeneruri - a String value of URIcontexts - a List<Map<String, IProfile>> of user and controller profile map
UCHException - an Object of UCHExceptionIUIPMListener.addUriServiceContexts(String, List)
public void removeUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
throws UCHException
IUIPMListener
removeUriServiceContexts in interface IUIPMListeneruri - a String value of URIcontexts - a List<Map<String, IProfile>> of user and controller profile map
UCHException - an Object of UCHExceptionIUIPMListener.removeUriServiceContexts(String, List)public List<Map<String,IProfile>> getContexts()
IUIPMListener
getContexts in interface IUIPMListenerIUIPMListener.getContexts()public List<Map<String,IProfile>> getTargetContexts(String targetId)
IUIPMListener
getTargetContexts in interface IUIPMListenertargetId - a String value of targetId
IUIPMListener.getTargetContexts(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||