本文整理了Java中org.cybergarage.upnp.Action.getInputArgumentList()
方法的一些代码示例,展示了Action.getInputArgumentList()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Action.getInputArgumentList()
方法的具体详情如下:
包路径:org.cybergarage.upnp.Action
类名称:Action
方法名:getInputArgumentList
暂无
代码示例来源:origin: i2p/i2p.i2p
public boolean postControlAction()
{
// Thanks for Giordano Sassaroli <sassarol@cefriel.it> (08/30/03)
ArgumentList actionArgList = getArgumentList();
ArgumentList actionInputArgList = getInputArgumentList();
ActionRequest ctrlReq = new ActionRequest();
ctrlReq.setRequest(this, actionInputArgList);
if (Debug.isOn() == true)
ctrlReq.print();
ActionResponse ctrlRes = ctrlReq.post();
if (Debug.isOn() == true)
ctrlRes.print();
setControlResponse(ctrlRes);
// Thanks for Dimas <cyberrate@users.sourceforge.net> and Stefano Lenzi <kismet-sl@users.sourceforge.net> (07/09/04)
int statCode = ctrlRes.getStatusCode();
setStatus(statCode);
if (ctrlRes.isSuccessful() == false)
return false;
ArgumentList outArgList = ctrlRes.getResponse();
try {
actionArgList.setResArgs(outArgList);
} catch (IllegalArgumentException ex){
setStatus(UPnPStatus.INVALID_ARGS,"Action succesfully delivered but invalid arguments returned.");
return false;
}
return true;
}
代码示例来源:origin: apache/felix
public String[] getInputArgumentNames() {
// TODO to check
ArgumentList argsList=act.getInputArgumentList();
if(argsList.size()==0){
return null;
}
String [] inputArgs=new String[argsList.size()];
for(int i=0;i<argsList.size();i++){
inputArgs[i]=argsList.getArgument(i).getName();
}
return inputArgs;
}
代码示例来源:origin: org.apache.felix/org.apache.felix.upnp.basedriver
public String[] getInputArgumentNames() {
// TODO to check
ArgumentList argsList=act.getInputArgumentList();
if(argsList.size()==0){
return null;
}
String [] inputArgs=new String[argsList.size()];
for(int i=0;i<argsList.size();i++){
inputArgs[i]=argsList.getArgument(i).getName();
}
return inputArgs;
}
代码示例来源:origin: cybergarage/cybergarage-upnp
return;
ArgumentList inArgList = action.getInputArgumentList();
if (0 < inArgList.size()) {
ActionDialog dlg = new ActionDialog(ctrlPoint.getFrame(), action);
代码示例来源:origin: org.apache.felix/org.apache.felix.upnp.basedriver
ArgumentList alIn = upnpAct.getInputArgumentList();
ArgumentList alOut = upnpAct.getOutputArgumentList();
String[] inArg = osgiAct.getInputArgumentNames();
代码示例来源:origin: apache/felix
ArgumentList alIn = upnpAct.getInputArgumentList();
ArgumentList alOut = upnpAct.getOutputArgumentList();
String[] inArg = osgiAct.getInputArgumentNames();
代码示例来源:origin: org.apache.felix/org.apache.felix.upnp.basedriver
argsList= act.getInputArgumentList();
代码示例来源:origin: apache/felix
argsList= act.getInputArgumentList();
代码示例来源:origin: geniusgithub/MediaPlayer
public boolean postControlAction()
{
// Thanks for Giordano Sassaroli <sassarol@cefriel.it> (08/30/03)
ArgumentList actionArgList = getArgumentList();
ArgumentList actionInputArgList = getInputArgumentList();
ActionRequest ctrlReq = new ActionRequest();
ctrlReq.setRequest(this, actionInputArgList);
if (Debug.isOn() == true)
ctrlReq.print();
ActionResponse ctrlRes = ctrlReq.post();
if (Debug.isOn() == true)
ctrlRes.print();
setControlResponse(ctrlRes);
// Thanks for Dimas <cyberrate@users.sourceforge.net> and Stefano Lenzi <kismet-sl@users.sourceforge.net> (07/09/04)
int statCode = ctrlRes.getStatusCode();
setStatus(statCode);
if (ctrlRes.isSuccessful() == false)
return false;
ArgumentList outArgList = ctrlRes.getResponse();
try {
actionArgList.setResArgs(outArgList);
} catch (IllegalArgumentException ex){
setStatus(UPnPStatus.INVALID_ARGS,"Action succesfully delivered but invalid arguments returned.");
return false;
}
return true;
}
代码示例来源:origin: cybergarage/cybergarage-upnp
public boolean postControlAction()
{
// Thanks for Giordano Sassaroli <sassarol@cefriel.it> (08/30/03)
ArgumentList actionArgList = getArgumentList();
ArgumentList actionInputArgList = getInputArgumentList();
ActionRequest ctrlReq = new ActionRequest();
ctrlReq.setRequest(this, actionInputArgList);
if (Debug.isOn() == true)
ctrlReq.print();
ActionResponse ctrlRes = ctrlReq.post();
if (Debug.isOn() == true)
ctrlRes.print();
setControlResponse(ctrlRes);
// Thanks for Dimas <cyberrate@users.sourceforge.net> and Stefano Lenzi <kismet-sl@users.sourceforge.net> (07/09/04)
int statCode = ctrlRes.getStatusCode();
setStatus(statCode);
if (ctrlRes.isSuccessful() == false)
return false;
ArgumentList outArgList = ctrlRes.getResponse();
try {
actionArgList.setResArgs(outArgList);
} catch (IllegalArgumentException ex){
setStatus(UPnPStatus.INVALID_ARGS,"Action succesfully delivered but invalid arguments returned.");
return false;
}
return true;
}
内容来源于网络,如有侵权,请联系作者删除!