public class QueryResponseextends ControlResponse
Represents a UPnP query response. Extends ControlResponse to provide functionality for handling state variable query responses.
  • Constructor Details

    • QueryResponse

      public QueryResponse()
      /////////////////////////////////////////////
    • QueryResponse

      public QueryResponse(SOAPResponse soapRes)
      Constructs a QueryResponse from a SOAP response.
      Parameters:
      soapRes - the SOAP response to wrap
  • Method Details

    • getReturnNode

      private Node getReturnNode()
      Gets the return value node from the query response.
      Returns:
      the return value node, or null if not found
    • getReturnValue

      public String getReturnValue()
      Gets the return value from the query response.
      Returns:
      the return value as a string, or empty string if not found
    • setResponse

      public void setResponse(StateVariable stateVar)
      Sets the response using the specified state variable.
      Parameters:
      stateVar - the state variable containing the value to return
    • createResponseNode

      private Node createResponseNode(String var)
      Builds the response node carrying one variable's value.
      Parameters:
      var - the variable name
      Returns:
      the new node