public interface UPnPClientService extends UPnPAdvertisedService
Modifier and Type | Method and Description |
---|---|
void |
addStateVariableListener(UPnPStateVariableListener listener)
Adds a state variable listener to this
UPnPClientService . |
UPnPClientDevice |
getDevice()
Gets the UPnP device that this service is a part of.
|
UPnPClientStateVariable |
getStateVariable(String stateVariableName)
Gets a UPnP state variable from the UPnP description of this
service.
|
UPnPClientStateVariable[] |
getStateVariables()
Gets all of the UPnP state variables supported by this
service.
|
boolean |
getSubscribedStatus()
Gets the subscription status of the service.
|
void |
postActionInvocation(UPnPActionInvocation actionInvocation,
UPnPActionResponseHandler handler)
Posts an action to the network.
|
void |
removeStateVariableListener(UPnPStateVariableListener listener)
Removes a change listener.
|
void |
setSubscribedStatus(boolean subscribed)
Attempts to subscribe or unsubscribe the control point to/from
this service.
|
getAdvertisedStateVariable, getAdvertisedStateVariables, getControlURL, getEventSubURL, getSCPDURL, getXML
getAction, getActions, getServiceId, getServiceType, getSpecVersion
UPnPClientDevice getDevice()
void postActionInvocation(UPnPActionInvocation actionInvocation, UPnPActionResponseHandler handler)
actionInvocation
- The action invocation to post.handler
- The handler that will be notified when the action
response is received. May be null, in which case the
action response will be discarded.NullPointerException
- if action is null.UPnPActionInvocation
void addStateVariableListener(UPnPStateVariableListener listener)
UPnPClientService
.
If this service has evented state variables,
this method will cause the control point to attempt to
subscribe to the service if it is not already subscribed.
See UPnP Device Architecture specification for
UPnP service and state variable subscription.
Adding a listener which is the same instance as a previously added (and not removed) listener has no effect.
listener
- The listener to add.setSubscribedStatus(boolean)
void removeStateVariableListener(UPnPStateVariableListener listener)
listener
- The listener to remove.void setSubscribedStatus(boolean subscribed)
UPnPStateVariableListener
interface.subscribed
- True to subscribe to evented state variable
updates, false to unsubscribe.UnsupportedOperationException
- if subscribed
is
true
but the service has no evented state variables.boolean getSubscribedStatus()
UPnPClientStateVariable getStateVariable(String stateVariableName)
stateVariableName
- The name of the state variable to get.stateVariableName
parameter.IllegalArgumentException
- if the stateVariableName
does not match a state variable name in this service.UPnPClientStateVariable[] getStateVariables()
stateVariable
elements in the UPnP service description.Copyright © 2013 CableLabs. All rights reserved.