本文整理汇总了Java中org.cybergarage.upnp.control.QueryListener类的典型用法代码示例。如果您正苦于以下问题:Java QueryListener类的具体用法?Java QueryListener怎么用?Java QueryListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
QueryListener类属于org.cybergarage.upnp.control包,在下文中一共展示了QueryListener类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: performQueryListener
import org.cybergarage.upnp.control.QueryListener; //导入依赖的package包/类
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());
}
queryReq.post(queryRes);
return true;
}
示例2: setQueryListener
import org.cybergarage.upnp.control.QueryListener; //导入依赖的package包/类
public void setQueryListener(QueryListener listener)
{
ServiceList serviceList = getServiceList();
int nServices = serviceList.size();
for (int n=0; n<nServices; n++) {
Service service = serviceList.getService(n);
service.setQueryListener(listener);
}
}
示例3: setQueryListener
import org.cybergarage.upnp.control.QueryListener; //导入依赖的package包/类
public void setQueryListener(QueryListener queryListener)
{
ServiceStateTable stateTable = getServiceStateTable();
int tableSize = stateTable.size();
for (int n=0; n<tableSize; n++) {
StateVariable var = stateTable.getStateVariable(n);
var.setQueryListener(queryListener);
}
}
示例4: setQueryListener
import org.cybergarage.upnp.control.QueryListener; //导入依赖的package包/类
public void setQueryListener(QueryListener listener) {
ServiceList serviceList = getServiceList();
int nServices = serviceList.size();
for (int n = 0; n < nServices; n++) {
Service service = serviceList.getService(n);
service.setQueryListener(listener);
}
}
示例5: getQueryListener
import org.cybergarage.upnp.control.QueryListener; //导入依赖的package包/类
public QueryListener getQueryListener()
{
return getStateVariableData().getQueryListener();
}
示例6: setQueryListener
import org.cybergarage.upnp.control.QueryListener; //导入依赖的package包/类
public void setQueryListener(QueryListener listener)
{
getStateVariableData().setQueryListener(listener);
}