Package net.sbbi.upnp.services
Class ServiceAction
- java.lang.Object
-
- net.sbbi.upnp.services.ServiceAction
-
public class ServiceAction extends Object
An object to represent a service action proposed by an UPNP service- Version:
- 1.0
- Author:
- SuperBonBon
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringnameprotected UPNPServiceparent
-
Constructor Summary
Constructors Modifier Constructor Description protectedServiceAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceActionArgumentgetActionArgument(String argumentName)Look for an ServiceActionArgument for a given nameListgetActionArguments()The action in and out arguments ServiceActionArgument objects listServiceActionArgumentgetInputActionArgument(String argumentName)Look for an input ServiceActionArgument for a given nameListgetInputActionArguments()Return a list containing input ( when a response is sent ) arguments objectsListgetInputActionArgumentsNames()Return a list containing input ( when a response is sent ) arguments namesStringgetName()The action nameServiceActionArgumentgetOutputActionArgument(String argumentName)Look for an output ServiceActionArgument for a given nameListgetOutputActionArguments()Return a list containing output ( when a response is received ) arguments objectsListgetOutputActionArgumentsNames()Return a list containing output ( when a response is received ) arguments namesUPNPServicegetParent()protected voidsetActionArguments(List orderedActionArguments)
-
-
-
Field Detail
-
name
protected String name
-
parent
protected UPNPService parent
-
-
Method Detail
-
getParent
public UPNPService getParent()
-
getActionArguments
public List getActionArguments()
The action in and out arguments ServiceActionArgument objects list- Returns:
- the list with ServiceActionArgument objects or null if the action has no params
-
getActionArgument
public ServiceActionArgument getActionArgument(String argumentName)
Look for an ServiceActionArgument for a given name- Parameters:
argumentName- the argument name- Returns:
- the argument or null if not found or not available
-
setActionArguments
protected void setActionArguments(List orderedActionArguments)
-
getInputActionArguments
public List getInputActionArguments()
Return a list containing input ( when a response is sent ) arguments objects- Returns:
- a list containing input arguments ServiceActionArgument objects or null when nothing is needed for such operation
-
getInputActionArgument
public ServiceActionArgument getInputActionArgument(String argumentName)
Look for an input ServiceActionArgument for a given name- Parameters:
argumentName- the input argument name- Returns:
- the argument or null if not found or not available
-
getOutputActionArguments
public List getOutputActionArguments()
Return a list containing output ( when a response is received ) arguments objects- Returns:
- a list containing output arguments ServiceActionArgument objects or null when nothing returned for such operation
-
getOutputActionArgument
public ServiceActionArgument getOutputActionArgument(String argumentName)
Look for an output ServiceActionArgument for a given name- Parameters:
argumentName- the input argument name- Returns:
- the argument or null if not found or not available
-
getInputActionArgumentsNames
public List getInputActionArgumentsNames()
Return a list containing input ( when a response is sent ) arguments names- Returns:
- a list containing input arguments names as Strings or null when nothing is needed for such operation
-
getOutputActionArgumentsNames
public List getOutputActionArgumentsNames()
Return a list containing output ( when a response is received ) arguments names- Returns:
- a list containing output arguments names as Strings or null when nothing returned for such operation
-
getName
public String getName()
The action name- Returns:
- The action name
-
-