|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.urcsdk.target.upnp2s.Upnp2sTargetTun
public class Upnp2sTargetTun
Upnp2sTargetTun is the UPnP implementation of the Target TUN
interface.
| Field Summary | |
|---|---|
protected java.util.Map<ITarget,java.util.Map<java.lang.String,java.lang.Object>> |
targetParametersMap
|
| Constructor Summary | |
|---|---|
Upnp2sTargetTun()
Creates a new Upnp2sTargetTun instance. |
|
| Method Summary | |
|---|---|
void |
abortSession(java.lang.String sessionId)
abortSession is called when the target needs to close a
session on the Client. |
void |
acknowledgeNotification(java.lang.String sessionId,
java.lang.String elementId)
acknowledgeNotification is called from the lower level of the
Tun, when a Client wants to acknowledge a Notification |
void |
closeSession(java.lang.String sessionId)
closeSession is called from the lower level of the Tun,
when a Client needs to close a session. |
void |
configureForTarget(ITarget target,
java.util.Map<java.lang.String,java.lang.Object> parameterMap)
configureForTarget |
java.lang.Object |
getElementState(java.lang.String sessionId,
java.lang.String elementId)
getElementState is an incoming call from the lower
levels of the Tun, from a Client that needs the current value of a SocketElement |
java.lang.String |
getFriendlyName()
|
java.lang.String |
invokeCommandRequest(java.lang.String sessionId,
java.lang.String elementId)
invokeCommandRequest is called from the lower level of the
Tun, when a Client wants to invoke a command |
void |
invokeLocator(java.lang.String targetName,
java.lang.String locatorId)
invokeLocator |
boolean |
isClientDiscovered(java.lang.String clientUdn)
isClientDiscovered |
java.lang.String |
openSessionRequest(java.lang.String targetName,
java.lang.String socketName,
java.lang.String clientUdn)
openSessionRequest is called from the lower level of the Tun,
when a Client needs to open a session. |
void |
propagateUpdates(java.lang.String sessionId,
java.util.HashMap<java.lang.String,java.lang.Object> accUpdateMap)
This method is called to send bulk accumulated updates to the Client |
boolean |
setElementStateRequest(java.lang.String sessionId,
java.lang.String elementId,
java.lang.Object value)
setElementStateRequest is called from the lower level of the
Tun, when a Client wants to set the value of a stateElement. |
void |
setListener(ITargetTunListener targetTunListener)
setListener Sets the Listener for this Tun |
void |
unbindTarget(ITarget target)
unbindTarget |
void |
updateElementState(java.lang.String sessionId,
IUISocketElement element)
updateElementState is called to alert a Client of a change to a
socketElement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map<ITarget,java.util.Map<java.lang.String,java.lang.Object>> targetParametersMap
| Constructor Detail |
|---|
public Upnp2sTargetTun()
Upnp2sTargetTun instance.
| Method Detail |
|---|
public void abortSession(java.lang.String sessionId)
throws UrcException
ITargetTunabortSession is called when the target needs to close a
session on the Client. Need not be called if the Client has requested the
session be closed.
abortSession in interface ITargetTunsessionId - a String value
UrcException
public void updateElementState(java.lang.String sessionId,
IUISocketElement element)
throws UrcException
ITargetTunupdateElementState is called to alert a Client of a change to a
socketElement.
updateElementState in interface ITargetTunsessionId - a String valueelement - an IUISocketElement value
UrcException
public void propagateUpdates(java.lang.String sessionId,
java.util.HashMap<java.lang.String,java.lang.Object> accUpdateMap)
throws UrcException
ITargetTun
propagateUpdates in interface ITargetTunUrcExceptionpublic void closeSession(java.lang.String sessionId)
ITargetTuncloseSession is called from the lower level of the Tun,
when a Client needs to close a session.
closeSession in interface ITargetTunsessionId - a String value
public boolean setElementStateRequest(java.lang.String sessionId,
java.lang.String elementId,
java.lang.Object value)
ITargetTunsetElementStateRequest is called from the lower level of the
Tun, when a Client wants to set the value of a stateElement.
setElementStateRequest in interface ITargetTunsessionId - a String valueelementId - a String valuevalue - a Object value
boolean response
public java.lang.Object getElementState(java.lang.String sessionId,
java.lang.String elementId)
ITargetTungetElementState is an incoming call from the lower
levels of the Tun, from a Client that needs the current value of a SocketElement
getElementState in interface ITargetTunsessionId - a String valueelementId - a String value
Object Value
public java.lang.String invokeCommandRequest(java.lang.String sessionId,
java.lang.String elementId)
ITargetTuninvokeCommandRequest is called from the lower level of the
Tun, when a Client wants to invoke a command
invokeCommandRequest in interface ITargetTunsessionId - a String valueelementId - a String value
String Status
public void acknowledgeNotification(java.lang.String sessionId,
java.lang.String elementId)
ITargetTunacknowledgeNotification is called from the lower level of the
Tun, when a Client wants to acknowledge a Notification
acknowledgeNotification in interface ITargetTunsessionId - a String valueelementId - a String value
public java.lang.String openSessionRequest(java.lang.String targetName,
java.lang.String socketName,
java.lang.String clientUdn)
ITargetTunopenSessionRequest is called from the lower level of the Tun,
when a Client needs to open a session.
openSessionRequest in interface ITargetTuntargetName - a String valuesocketName - a String valueclientUdn - a String value
String sessionId
public void invokeLocator(java.lang.String targetName,
java.lang.String locatorId)
ITargetTuninvokeLocator is called from the lower level of the
Tun, when a Client wants to invoke a Locator on the Target.
- Specified by:
invokeLocator in interface ITargetTun
- Parameters:
targetName - a StringlocatorId - a String
public void setListener(ITargetTunListener targetTunListener)
ITargetTunsetListener Sets the Listener for this Tun
setListener in interface ITargetTuntargetTunListener - a ITargetTunListener valuepublic boolean isClientDiscovered(java.lang.String clientUdn)
isClientDiscovered
clientUdn -
boolean value
public void unbindTarget(ITarget target)
throws UrcException
ITargetTununbindTarget is called by the TargetTunManager, when Target
calls the TargetTunManager's unbindTargetTun method.
- Specified by:
unbindTarget in interface ITargetTun
- Parameters:
target - a ITarget
- Throws:
UrcException
public void configureForTarget(ITarget target,
java.util.Map<java.lang.String,java.lang.Object> parameterMap)
ITargetTunconfigureForTarget is called by the TargetTunManager, when first
time a Target calls the TargetTunManager's bindtoTun method.
- Specified by:
configureForTarget in interface ITargetTun
- Parameters:
target - a ITargetparameterMap - a Map
public java.lang.String getFriendlyName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||