public class ActionRequestextends ControlRequest
Represents a UPnP action control request. Extends ControlRequest to provide action-specific functionality.
  • Constructor Details

    • ActionRequest

      public ActionRequest()
      /////////////////////////////////////////////
    • ActionRequest

      public ActionRequest(HTTPRequest httpReq)
      Constructs an ActionRequest from an HTTP request.
      Parameters:
      httpReq - the HTTP request to wrap
  • Method Details

    • getActionNode

      public Node getActionNode()
      Gets the action node from the request.
      Returns:
      the action node
    • getActionName

      public String getActionName()
      Gets the action name from the request.
      Returns:
      the action name
    • getArgumentList

      public ArgumentList getArgumentList()
      Gets the argument list from the request.
      Returns:
      the argument list
    • setRequest

      public void setRequest(Action action, ArgumentList argList)
      Sets the request with the specified action and argument list.
      Parameters:
      action - the action to set
      argList - the argument list
    • createContentNode

      private Node createContentNode(Service service, Action action, ArgumentList argList)
      Creates the response content node for one action.
      Parameters:
      service - the service the action belongs to, supplying the service type
      action - the action to describe, supplying the action name
      argList - the argument list, each argument becoming a child node
      Returns:
      the created content node
    • post

      public ActionResponse post()
      Posts the action request and gets the response.
      Returns:
      the action response