Class ScriptEditorServices

java.lang.Object
step.framework.server.AbstractServices<User>
step.core.deployment.AbstractStepServices
step.plugins.scripteditor.ScriptEditorServices

@Singleton @Path("/scripteditor") public class ScriptEditorServices extends AbstractStepServices
  • Constructor Details

    • ScriptEditorServices

      public ScriptEditorServices()
  • Method Details

    • getScript

      @GET @Produces("text/plain") @Path("/file/{filename}") public String getScript(@PathParam("filename") String filename) throws IOException
      Throws:
      IOException
    • saveScript

      @POST @Path("/file/{filename}") public void saveScript(@PathParam("filename") String filename, String content) throws IOException
      Throws:
      IOException
    • saveFunctionScript

      @POST @Path("/function/{functionid}/file") public void saveFunctionScript(@PathParam("functionid") String functionid, String content) throws IOException
      Throws:
      IOException
    • getFunctionScript

      @GET @Produces("text/plain") @Path("/function/{functionid}/file") public String getFunctionScript(@PathParam("functionid") String functionid) throws IOException
      Throws:
      IOException