@Singleton @Path(value="/scripteditor") public class ScriptEditorServices extends AbstractServices
controller| Constructor and Description |
|---|
ScriptEditorServices() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFunctionScript(String functionid) |
String |
getScript(String filename) |
void |
saveFunctionScript(String functionid,
String content) |
void |
saveScript(String filename,
String content) |
getContext, getExecutionRunnable@GET
@Path(value="/file/{filename}")
public String getScript(@PathParam(value="filename")
String filename)
throws IOException
IOException@POST
@Path(value="/file/{filename}")
public void saveScript(@PathParam(value="filename")
String filename,
String content)
throws IOException
IOException@POST
@Path(value="/function/{functionid}/file")
public void saveFunctionScript(@PathParam(value="functionid")
String functionid,
String content)
throws IOException
IOException@GET
@Path(value="/function/{functionid}/file")
public String getFunctionScript(@PathParam(value="functionid")
String functionid)
throws IOException
IOExceptionCopyright © 2019. All rights reserved.