|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.uch.ta.upnpsatellitebox.UpnpSatelliteBoxTAFacade
public class UpnpSatelliteBoxTAFacade
Provides the method to Get/Set target Value/State and forward update and received events to ITAListener.
| Constructor Summary | |
|---|---|
UpnpSatelliteBoxTAFacade()
Default Constructor. |
|
| Method Summary | |
|---|---|
void |
finalize()
This method is called by UCH before Un-installing or Unloading the TA. |
List<Map<String,Object>> |
getDynRes(String targetId,
List<Map<String,String>> resProps)
Get the Dynamic Resources from the TA. |
List<Set<String>> |
getIndices(String sessionId,
List<String> eltIds,
List<Integer> indexNos)
Get Indices available on specific level of dimension of dimensional Element. |
Map<String,String> |
getLocators(String targetName)
Get a map of locators containing locatorId and locatorType for a specific target. |
List<String> |
getRegisteredTargetIds()
Get the target identifiers that the TA is currently representing. |
List<String> |
getSessionIds(String targetId,
String socketName)
Get the Session Identifiers for specified targetId and socketName. |
String |
getSocketDescriptionUri(String targetName,
String socketName)
Get the URI for retrieving the Socket Description for specified targetName and socketName. |
String |
getSocketFriendlyName(String targetId,
String socketName)
Get the Socket Friendly Name for the specified socketName and targetId. |
String |
getSocketName(String sessionId)
Get the SocketName for the specified sessionId. |
List<String> |
getSocketNames(String targetName)
Get the List of SocketName for specified targetName. |
Map<String,String> |
getTAProps()
Get Target Adapter Properties Map. |
String |
getTargetDescriptionUri(String targetName)
Get the URI for retrieving the Target Description. |
String |
getTargetName(String targetId)
Get the targetName for specified targetId. |
Map<String,Object> |
getTargetProps(String targetId)
Get the Target's Properties for specified targetId. |
Map<String,String> |
getValues(String sessionId,
List<String> paths,
List<Boolean> includeSets)
Returns a value/state of the specified socket elements. |
void |
init(ITAListener taListener,
Map<String,String> taProps,
Map<String,String> uchProps)
When the TA is installed and loaded, this method is called by UCH prior to any other TA function. |
void |
invokeLocator(String targetId,
String locaterId)
Invoke the specified locator function on a target. |
boolean |
isElementAvailable(String targetId,
String socketName,
String eltId)
Checks whether a given socketElement is available in specified Socket of specified Target or not. |
boolean |
isImplemented(String functionName)
Checks whether specified function is implemented by the TA or not. |
Map<String,String> |
openSessionRequest(String targetId,
String socketName,
Map<String,String> clientProps,
Map<String,IProfile> context)
The UCH asks for permission to open a session with a specified client on a specified socket. |
void |
registerTarget(String targetId,
Map<String,Object> targetProps,
List<Map<String,IProfile>> contexts)
Register Target Adapter with specified targetId. |
boolean |
resumeSessionRequest(String sessionId)
The UCH asks for permission to resume a session. |
void |
sessionClosed(String sessionId)
Closes the Session for specified sessionId and do the necessary clean-up for the target. |
void |
sessionOpened(String targetId,
String sessionId,
String socketName,
Map<String,String> clientProps,
Map<String,IProfile> context)
If the TA has accepted an open session request, and if the UCH succeeded in the necessary steps to open a session with the client, the UCH will call sessionOpened and provide the sessionId pertaining to the new session. |
void |
sessionResumed(String sessionId)
The UCH signals the TA that the session has resumed. |
long |
sessionSuspended(String sessionId,
long suggestedTimeout)
The UCH signals the TA that the client has suspended a session with one of the TA’s targets. |
Map<String,List<String>> |
setValuesRequest(String sessionId,
boolean isValidated,
List<String> paths,
List<String> operations,
List<String> reqValues)
The client requests to change the target state in one or more operations on specified socket elements. |
boolean |
suspendSessionRequest(String sessionId)
The UCH asks for permission to suspend a session. |
void |
targetContextsAdded(String targetId,
List<Map<String,IProfile>> contexts)
Called when one or more contexts got added to an existing target. |
void |
targetContextsRemoved(String targetId,
List<Map<String,IProfile>> contexts)
Called when one or more contexts got removed to an existing target. |
void |
targetRequest(HttpServletRequest request,
HttpServletResponse response,
Map<String,IProfile> context)
The UCH calls this function if it has received a request from a target to a URI that the TA has claimed for itself by a previous call to startUriService().It modify the response object according to request object. |
void |
unregisterTarget(String targetId)
Called when target has been disappeared from the network. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpnpSatelliteBoxTAFacade()
| Method Detail |
|---|
public void init(ITAListener taListener,
Map<String,String> taProps,
Map<String,String> uchProps)
throws TAFatalException
ITA
init in interface ITAtaListener - an Object of ITAListenertaProps - a Map<String, String> of ITA PropertiesuchProps - a Map<String, String> of UCH Properties
TAFatalException - an Object of TAFatalExceptionITA.init(ITAListener, Map, Map)
public void registerTarget(String targetId,
Map<String,Object> targetProps,
List<Map<String,IProfile>> contexts)
throws TAException,
TAFatalException
ITA
registerTarget in interface ITAtargetId - a String value of targetIdtargetProps - Map<String, Object>contexts - a List<Map<String, IProfile>> of user and controller profile map
TAException - an Object of TAException
TAFatalException - an Object of TAFatalExceptionITA.registerTarget(String, Map, List)
public Map<String,String> openSessionRequest(String targetId,
String socketName,
Map<String,String> clientProps,
Map<String,IProfile> context)
throws TAFatalException
ITA
openSessionRequest in interface ITAtargetId - a String value of targetIdsocketName - a String value of socketNameclientProps - Map<String, String>context - a Map<String, IProfile> of user and controller profile
TAFatalException - an Object of TAFatalExceptionITA.openSessionRequest(String, String, Map, Map)
public void sessionOpened(String targetId,
String sessionId,
String socketName,
Map<String,String> clientProps,
Map<String,IProfile> context)
throws TAFatalException
ITA
sessionOpened in interface ITAtargetId - a String value of targetIdsessionId - a String value of sessionIdsocketName - a String value of socketNameclientProps - Map<String, String>context - a Map<String, IProfile> of user and controller profile
TAFatalException - an Object of TAFatalExceptionITA.sessionOpened(String, String, String, Map, Map)
public Map<String,String> getValues(String sessionId,
List<String> paths,
List<Boolean> includeSets)
throws TAFatalException
ITA
getValues in interface ITAsessionId - a String value of sessionIdpaths - a List<String> of elementPathincludeSets - a List<Boolean> of includeSets
TAFatalException - an Object of TAFatalExceptionITA.getValues(String, List, List)
public Map<String,List<String>> setValuesRequest(String sessionId,
boolean isValidated,
List<String> paths,
List<String> operations,
List<String> reqValues)
throws TAFatalException
ITA
setValuesRequest in interface ITAsessionId - 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
TAFatalException - an Object of TAFatalExceptionITA.setValuesRequest(String, boolean, List, List, List)
public List<String> getRegisteredTargetIds()
throws TAFatalException
ITA
getRegisteredTargetIds in interface ITATAFatalException - an Object of TAFatalExceptionITA.getRegisteredTargetIds()
public String getSocketDescriptionUri(String targetName,
String socketName)
throws TAFatalException
ITA
getSocketDescriptionUri in interface ITAtargetName - a String value of targetNamesocketName - a String value of socketName
TAFatalException - an Object of TAFatalExceptionITA.getSocketDescriptionUri(java.lang.String, java.lang.String)
public List<String> getSessionIds(String targetId,
String socketName)
throws TAFatalException
ITA
getSessionIds in interface ITAtargetId - a String value of targetIdsocketName - a String value of socketName
TAFatalException - an Object of TAFatalExceptionITA.getSessionIds(java.lang.String, java.lang.String)
public String getSocketName(String sessionId)
throws TAFatalException
ITA
getSocketName in interface ITAsessionId - a String value of sessionId
TAFatalException - an Object of TAFatalExceptionITA.getSocketName(java.lang.String)
public String getSocketFriendlyName(String targetId,
String socketName)
ITA
getSocketFriendlyName in interface ITAtargetId - a String value of targetIdsocketName - a String value of socketName
ITA.getSocketFriendlyName(java.lang.String, java.lang.String)
public List<String> getSocketNames(String targetName)
throws TAFatalException
ITA
getSocketNames in interface ITAtargetName - a String value of targetName
TAFatalException - an Object of TAFatalExceptionITA.getSocketNames(java.lang.String)
public String getTargetDescriptionUri(String targetName)
throws TAFatalException
ITA
getTargetDescriptionUri in interface ITAtargetName - a String value of targetName
TAFatalException - an Object of TAFatalExceptionITA.getTargetDescriptionUri(java.lang.String)
public String getTargetName(String targetId)
throws TAFatalException
ITA
getTargetName in interface ITAtargetId - a String value of targetId
TAFatalException - an Object of TAFatalExceptionITA.getTargetName(java.lang.String)
public Map<String,Object> getTargetProps(String targetId)
throws TAFatalException
ITA
getTargetProps in interface ITAtargetId - a String value of targetId
TAFatalException - an Object of TAFatalExceptionITA.getTargetProps(java.lang.String)
public boolean isElementAvailable(String targetId,
String socketName,
String eltId)
throws TAFatalException
ITA
isElementAvailable in interface ITAtargetId - a String value of targetIdsocketName - a String value of socketNameeltId - a String value of eltId
TAFatalException - an Object of TAFatalExceptionITA.isElementAvailable(java.lang.String, java.lang.String, java.lang.String)public boolean isImplemented(String functionName)
ITA
isImplemented in interface ITAfunctionName - a String value of functionName
ITA.isImplemented(java.lang.String)
public void sessionClosed(String sessionId)
throws TAFatalException
ITA
sessionClosed in interface ITAsessionId - a String value of sessionId
TAFatalException - an Object of TAFatalExceptionITA.sessionClosed(java.lang.String)
public void unregisterTarget(String targetId)
throws TAFatalException
ITA
unregisterTarget in interface ITAtargetId - a String value of targetId
TAFatalException - an Object of TAFatalExceptionITA.unregisterTarget(java.lang.String)public Map<String,String> getTAProps()
ITA
getTAProps in interface ITAITA.getTAProps()
public List<Set<String>> getIndices(String sessionId,
List<String> eltIds,
List<Integer> indexNos)
ITA
getIndices in interface ITAsessionId - a String value of sessionIdeltIds - a List<String> of elementIdsindexNos - a List<Integer> of indexNo
ITA.getIndices(String, List, List)
public boolean resumeSessionRequest(String sessionId)
throws TAFatalException,
TANotImplementedException
ITA
resumeSessionRequest in interface ITAsessionId - a String value of sessionId
TAFatalException - an Object of TAFatalException
TANotImplementedException - an Object of TANotImplementedExceptionITA.resumeSessionRequest(String)
public void sessionResumed(String sessionId)
throws TAException,
TAFatalException,
TANotImplementedException
ITA
sessionResumed in interface ITAsessionId - a string value of sessionId
TAException - an Object of TAException
TAFatalException - an Object of TAFatalException
TANotImplementedException - an Object of TANotImplementedExceptionITA.sessionResumed(String)
public long sessionSuspended(String sessionId,
long suggestedTimeout)
throws TAException,
TAFatalException,
TANotImplementedException
ITA
sessionSuspended in interface ITAsessionId - a String value of sessionIdsuggestedTimeout - a long value of suggestedTimeout
TAException - an Object of TAException
TAFatalException - an Object of TAFatalException
TANotImplementedException - an Object of TANotImplementedExceptionITA.sessionSuspended(String, long)
public boolean suspendSessionRequest(String sessionId)
throws TAFatalException,
TANotImplementedException
ITA
suspendSessionRequest in interface ITAsessionId - a String value of sessionId
TAFatalException - an Object of TAFatalException
TANotImplementedException - an Object of TANotImplementedExceptionITA.suspendSessionRequest(String)
public List<Map<String,Object>> getDynRes(String targetId,
List<Map<String,String>> resProps)
throws TAFatalException
ITA
getDynRes in interface ITAtargetId - a String value of sessionIdresProps - a List<Map<String, String>> value of Resource Properties
TAFatalException - an Object of TAFatalExceptionITA.getDynRes(String, List)public Map<String,String> getLocators(String targetName)
ITA
getLocators in interface ITAtargetName - a String value of targetName
ITA.getLocators(String)
public void invokeLocator(String targetId,
String locaterId)
throws TAException,
TAFatalException
ITA
invokeLocator in interface ITAtargetId - a String value of targetIdlocaterId - a String value of locaterId
TAException - an Object of TAException
TAFatalException - an Object of TAFatalExceptionITA.invokeLocator(java.lang.String, java.lang.String)
public void targetContextsAdded(String targetId,
List<Map<String,IProfile>> contexts)
throws TAFatalException
ITA
targetContextsAdded in interface ITAtargetId - a String value of targetIdcontexts - a List<Map<String, IProfile>> of user and controller profile map
TAFatalException - an Object of TAFatalExceptionITA.targetContextsAdded(String, List)
public void targetContextsRemoved(String targetId,
List<Map<String,IProfile>> contexts)
throws TAFatalException
ITA
targetContextsRemoved in interface ITAtargetId - a String value of targetIdcontexts - a List<Map<String, IProfile>> of user and controller profile map
TAFatalException - an Object of TAFatalExceptionITA.targetContextsRemoved(String, List)
public void targetRequest(HttpServletRequest request,
HttpServletResponse response,
Map<String,IProfile> context)
throws TAFatalException
ITA
targetRequest in interface ITArequest - a HttpServletRequest Objectresponse - a HttpServletResponse Objectcontext - a Map<String, IProfile> of user and controller profile
TAFatalException - an Object of TAFatalExceptionITA.targetRequest(HttpServletRequest, HttpServletResponse, Map)public void finalize()
ITA
finalize in interface ITAfinalize in class ObjectITA.finalize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||