Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Commit 599bdb8

Browse files
committed
update readme
1 parent c17af7c commit 599bdb8

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ See ClientTest.java for an example of Java client. It can be run with `gradle te
3838
* GET XML `/agents/{agentname}/all`
3939
returns the mind state of the agent
4040

41-
* GET TXT /agents/{agentname}/plans
41+
* GET TXT `/agents/{agentname}/plans`
4242
returns the agent's plans. A label can be used as argument:
4343
/agents/{agentname}/plans?label=planT
4444

45-
* POST FORM /agents/{agentname}/plans
45+
* POST FORM `/agents/{agentname}/plans`
4646
upload some plans in the agent's plan library
4747

4848

src/java/jacamo/web/RestImpl.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,6 @@ public String getAgentHtml(@PathParam("agentname") String agName) {
260260
Agent ag = getAgent(agName);
261261
if (ag != null) {
262262
so.append( mindInspectorTransformerHTML.transform( ag.getAgState() )); // transform to HTML
263-
} else {
264-
// TODO: use the rest API to get the agent HTML in the remote host
265263
}
266264

267265
so.append("<hr/><a href='plans' style='font-family: arial; text-decoration: none'>list plans</a>, &nbsp;");
@@ -315,8 +313,6 @@ public String loadPlans(@PathParam("agentname") String agName,
315313
ag.parseAS(new StringReader(plans), "RrestAPI");
316314
ag.load(uploadedInputStream, "restAPI://"+fileDetail.getFileName());
317315
r = "ok, code uploaded!";
318-
} else {
319-
// TODO: use rest API to load in the remote agent
320316
}
321317
return "<head><meta http-equiv=\"refresh\" content=\"2; URL='/agents/"+agName+"/all'\" /></head>"+r;
322318
} catch (Exception e) {
@@ -334,7 +330,6 @@ public Document getAgentXml(@PathParam("agentname") String agName) {
334330
if (ag != null)
335331
return ag.getAgState();
336332
else
337-
// TODO: use rest API to load in the remote agent
338333
return null;
339334
} catch (Exception e) {
340335
e.printStackTrace();
@@ -357,8 +352,6 @@ public String getAgentPlansTxt(@PathParam("agentname") String agName,
357352
so.append(pl.getAsTxt(false));
358353
else
359354
so.append(pl.get(label).toASString());
360-
} else {
361-
// TODO: use rest API to load in the remote agent
362355
}
363356
} catch (Exception e) {
364357
e.printStackTrace();
@@ -419,7 +412,6 @@ String execCmd(String agName, String sCmd) {
419412
createAgLog(agName, ag);
420413
return "included for execution";
421414
} else {
422-
// TODO: use rest API to load in the remote agent
423415
return "not implemented";
424416
}
425417
} catch (Exception e) {

0 commit comments

Comments
 (0)