|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IClientTun
IClientTun Implement this interface to create a Client Tun
for a specific networking platform. See Upnp2sClientTun for an
example.
| 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.Object |
getElementState(java.lang.String sessionId,
java.lang.String elementId)
Called to retrieve the current value of a state element |
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 elementValues)
Called when the Target updates the value of a state element. |
| Method Detail |
|---|
void abortSession(java.lang.String sessionId)
sessionId - a String value
void targetDiscovered(java.net.URI tdUri,
java.lang.String targetId)
tdUri - an URI valuetargetId - a String value
UrcException
void updateElementState(java.lang.String sessionId,
java.lang.String elementId,
java.lang.Object elementValues)
sessionId - a String valueelementId - a String valueelementValues - an Object array containing propogated values
void updateElementCsvList(java.lang.String sessionId,
java.lang.String elementIdCsvList,
java.lang.String valueCsvList)
sessionId - a String valueelementIdCsvList - a String with CSVvalueCsvList - a String with CSVvoid targetDiscarded(java.lang.String targetId)
targetId - a String value
void acknowledgeNotification(java.lang.String sessionId,
IUISocketElement socketElement)
throws UrcException
sessionId - a String valuesocketElement - an IUISocketElement value
UrcException
void closeSession(java.lang.String sessionId)
throws UrcException
sessionId - a String value
UrcException
java.lang.Object getElementState(java.lang.String sessionId,
java.lang.String elementId)
throws UrcException
sessionId - a String valueelementId - a String value
Object value
UrcException
java.lang.String invokeCommandRequest(IUISocketElement socketElement)
throws UrcException
socketElement - an IUISocketElement value
UrcException
boolean setElementStateRequest(IUISocketElement socketElement)
throws UrcException
socketElement - an IUISocketElement value
UrcException
void invokeLocator(java.lang.String locatorId,
java.lang.String targetName)
throws UrcException
locatorId - targetName -
UrcException
ClientSession openSessionRequest(IClient client,
TargetMirror target,
UISocketMirror socket)
throws UrcException
target - socket -
ClientSession value
UrcExceptionjava.util.List<TargetMirror> getRegisteredTargets()
List of TargetMirrorvoid setListener(IClientTunListener clientTunListener)
clientTunListener - a IClientTunListener value
void configureForClient(IClient client,
java.util.Map<java.lang.String,java.lang.Object> parameterMap)
throws UrcException
bindToClientTun method.
client - parameterMap - a Map
UrcException
void unbindClient(IClient client)
throws UrcException
unbindClientTun method.
client - a IClient value
UrcException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||