Package org.cybergarage.upnp.control

Examples of org.cybergarage.upnp.control.QueryListener


    getStateVariableData().setQueryListener(listener);
  }
 
  public boolean performQueryListener(QueryRequest queryReq)
  {
    QueryListener listener = getQueryListener();
    if (listener == null)
      return false;
    QueryResponse queryRes = new QueryResponse();
    StateVariable retVar = new StateVariable();
    retVar.set(this);
    retVar.setValue("");
    retVar.setStatus(UPnPStatus.INVALID_VAR);
    if (listener.queryControlReceived(retVar) == true) {
      queryRes.setResponse(retVar);
    }
    else {
      UPnPStatus upnpStatus = retVar.getStatus();
      queryRes.setFaultResponse(upnpStatus.getCode(), upnpStatus.getDescription());
View Full Code Here

TOP

Related Classes of org.cybergarage.upnp.control.QueryListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.