|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.urcsdk.client.upnp2s.Upnp2sClientTun
public class Upnp2sClientTun
Upnp2sClientTun
| Field Summary | |
|---|---|
protected java.util.Map<IClient,java.util.Map<java.lang.String,java.lang.Object>> |
clientParametersMap
|
protected java.util.HashMap<java.lang.String,TargetMirror> |
targetIdTargetMirrorMap
|
| Constructor Summary | |
|---|---|
Upnp2sClientTun()
Creates a new Upnp2sClientTun instance. |
|
| Method Summary | |
|---|---|
void |
abortSession(java.lang.String sessionId)
Called when the Target ends a session. |
void |
acknowledgeNotification(java.lang.String sessionId,
IUISocketElement socketElement)
Called to alert the Target that a notification has been acknowledged |
void |
closeSession(java.lang.String sessionId)
Called to alert the Target that the Client wants to close the session. |
void |
configureForClient(IClient client,
java.util.Map<java.lang.String,java.lang.Object> parameterMap)
Called by the ClientTunManager, when first time a Client calls the ClientTunManager's bindToClientTun method. |
java.lang.String |
createNextTargetId()
|
java.lang.Object |
getElementState(java.lang.String sessionId,
java.lang.String elementId)
Called to retrieve the current value of a state element |
java.lang.String |
getFriendlyName()
|
java.util.List<TargetMirror> |
getRegisteredTargets()
Returns the List of Targets discovered by this TUN |
java.lang.String |
invokeCommandRequest(IUISocketElement socketElement)
Should be implemented by the underlying network specific layer to indicate to the target that the user has invoked a commmand. |
void |
invokeLocator(java.lang.String locatorId,
java.lang.String targetName)
Should be implemented by the underlying network specific layer to invoke the Locator on the Target |
ClientSession |
openSessionRequest(IClient client,
TargetMirror target,
UISocketMirror socket)
Should be implemented by the underlying network specific layer to open a new Session with the Target |
boolean |
setElementStateRequest(IUISocketElement socketElement)
Should be implemented by the underlying network specific layer to indicate to the target that the user would like to change a state element. |
void |
setListener(IClientTunListener clientTunListener)
Sets the listener for this ClientTun |
void |
targetDiscarded(java.lang.String targetId)
Called when a Target unregisters itself from the network. |
void |
targetDiscovered(java.net.URI tdURI,
java.lang.String targetId)
Called when a new Target is discovered on the network. |
void |
unbindClient(IClient client)
Called by the ClientTunManager, when Client calls the ClientTunManager's unbindClientTun method. |
void |
updateElementCsvList(java.lang.String sessionId,
java.lang.String elementIdCsvList,
java.lang.String valueCsvList)
Called when the Target sends accumulated update using CSV list |
void |
updateElementState(java.lang.String sessionId,
java.lang.String elementId,
java.lang.Object value)
Called when the Target updates the value of a state element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.HashMap<java.lang.String,TargetMirror> targetIdTargetMirrorMap
protected java.util.Map<IClient,java.util.Map<java.lang.String,java.lang.Object>> clientParametersMap
| Constructor Detail |
|---|
public Upnp2sClientTun()
Upnp2sClientTun instance.
| Method Detail |
|---|
public void acknowledgeNotification(java.lang.String sessionId,
IUISocketElement socketElement)
throws UrcException
IClientTun
acknowledgeNotification in interface IClientTunsessionId - a String valuesocketElement - an IUISocketElement value
UrcException
public void closeSession(java.lang.String sessionId)
throws UrcException
IClientTun
closeSession in interface IClientTunsessionId - a String value
UrcException
public java.lang.Object getElementState(java.lang.String sessionId,
java.lang.String elementId)
throws UrcException
IClientTun
getElementState in interface IClientTunsessionId - a String valueelementId - a String value
Object value
UrcException
public java.lang.String invokeCommandRequest(IUISocketElement socketElement)
throws UrcException
IClientTun
invokeCommandRequest in interface IClientTunsocketElement - an IUISocketElement value
UrcException
public void invokeLocator(java.lang.String locatorId,
java.lang.String targetName)
throws UrcException
IClientTun
invokeLocator in interface IClientTunUrcException
public boolean setElementStateRequest(IUISocketElement socketElement)
throws UrcException
IClientTun
setElementStateRequest in interface IClientTunsocketElement - an IUISocketElement value
UrcException
public ClientSession openSessionRequest(IClient client,
TargetMirror target,
UISocketMirror socket)
throws UrcException
IClientTun
openSessionRequest in interface IClientTunClientSession value
UrcExceptionpublic void abortSession(java.lang.String sessionId)
IClientTun
abortSession in interface IClientTunsessionId - a String valuepublic void targetDiscarded(java.lang.String targetId)
IClientTun
targetDiscarded in interface IClientTuntargetId - a String value
public void targetDiscovered(java.net.URI tdURI,
java.lang.String targetId)
IClientTun
targetDiscovered in interface IClientTuntdURI - an URI valuetargetId - a String value
public void updateElementState(java.lang.String sessionId,
java.lang.String elementId,
java.lang.Object value)
IClientTun
updateElementState in interface IClientTunsessionId - a String valueelementId - a String valuevalue - an Object array containing propogated values
public void updateElementCsvList(java.lang.String sessionId,
java.lang.String elementIdCsvList,
java.lang.String valueCsvList)
IClientTun
updateElementCsvList in interface IClientTunsessionId - a String valueelementIdCsvList - a String with CSVvalueCsvList - a String with CSVpublic java.util.List<TargetMirror> getRegisteredTargets()
IClientTun
getRegisteredTargets in interface IClientTunList of TargetMirrorpublic void setListener(IClientTunListener clientTunListener)
IClientTun
setListener in interface IClientTunclientTunListener - a IClientTunListener value
public void configureForClient(IClient client,
java.util.Map<java.lang.String,java.lang.Object> parameterMap)
IClientTunbindToClientTun method.
configureForClient in interface IClientTunparameterMap - a Map
public void unbindClient(IClient client)
throws UrcException
IClientTununbindClientTun method.
unbindClient in interface IClientTunclient - a IClient value
UrcExceptionpublic java.lang.String createNextTargetId()
public java.lang.String getFriendlyName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||