public String getUri()
{
// this is only valid for Jaba 1.0 - this formula might have to change!
- return hosturl+"/"+serviceType;
+ return hosturl+(hosturl.lastIndexOf("/")==(hosturl.length()-1) ? "/" : "") +serviceType;
+ }
+ private boolean hasParams=false,lookedForParams=false;
+ public boolean hasParameters()
+ {
+ if (!lookedForParams)
+ {
+ lookedForParams=true;
+ try
+ {
+ hasParams = (getRunnerConfig().getArguments().size() > 0);
+ } catch (Exception e)
+ {
+
+ }
+ }
+ return hasParams;
}
};
rmsawsmenu.add(msawsmenu);
calcName = "";
}
- boolean hasparams = false;
- try
- {
- hasparams = (service.getRunnerConfig().getArguments().size() > 0);
- } catch (Exception e)
- {
-
- }
+ boolean hasparams = service.hasParameters();
do
{
if (submitGaps == true)