Codota Logo
JavascriptEngineRestService
Code IndexAdd Codota to your IDE (free)

How to use
JavascriptEngineRestService
in
org.eclipse.dirigible.engine.js.service

Best Java code snippets using org.eclipse.dirigible.engine.js.service.JavascriptEngineRestService (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.eclipse.dirigible/dirigible-engine-javascript

/**
 * Execute service put.
 *
 * @param path
 *            the path
 * @return result of the execution of the service
 */
@PUT
@Path("/{path:.*}")
@ApiOperation("Execute Server Side JavaScript Resource")
@ApiResponses({ @ApiResponse(code = 200, message = "Execution Result") })
public Response executeJavascriptServicePut(@PathParam("path") String path) {
  return executeJavascriptServiceGet(path);
}
origin: org.eclipse.dirigible/dirigible-engine-js

/**
 * Execute service post.
 *
 * @param path
 *            the path
 * @return result of the execution of the service
 */
@POST
@Path("/{path:.*}")
@ApiOperation("Execute Server Side JavaScript Resource")
@ApiResponses({ @ApiResponse(code = 200, message = "Execution Result") })
public Response executeServicePost(@PathParam("path") String path) {
  return executeService(path);
}
origin: org.eclipse.dirigible/dirigible-engine-js

/**
 * Execute service.
 *
 * @param path
 *            the path
 * @return result of the execution of the service
 */
@GET
@Path("/{path:.*}")
@ApiOperation("Execute Server Side JavaScript Resource")
@ApiResponses({ @ApiResponse(code = 200, message = "Execution Result") })
public Response executeService(@PathParam("path") String path) {
  try {
    processor.executeService(path);
    return Response.ok().build();
  } catch (ScriptingDependencyException e) {
    logger.error(e.getMessage(), e);
    return Response.status(Response.Status.ACCEPTED).entity(e.getMessage()).build();
  } catch (Throwable e) {
    String message = e.getMessage();
    logger.error(message, e);
    sendErrorInternalServerError(response, message);
    return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(message).build();
  }
}
origin: org.eclipse.dirigible/dirigible-engine-javascript

/**
 * Execute service.
 *
 * @param path
 *            the path
 * @return result of the execution of the service
 */
@GET
@Path("/{path:.*}")
@ApiOperation("Execute Server Side JavaScript Resource")
@ApiResponses({ @ApiResponse(code = 200, message = "Execution Result") })
public Response executeJavascriptServiceGet(@PathParam("path") String path) {
  try {
    processor.executeService(path);
    return Response.ok().build();
  } catch (ScriptingDependencyException e) {
    logger.error(e.getMessage());
    return Response.status(Response.Status.ACCEPTED).entity(e.getMessage()).build();
  } catch (RepositoryNotFoundException e) {
    String message = e.getMessage() + ". Try to publish the service before execution.";
    logger.error(message);
    return Response.status(Response.Status.ACCEPTED).entity(message).build();	
  } catch (Throwable e) {
    String message = e.getMessage();
    logger.error(message, e);
    sendErrorInternalServerError(response, message);
    return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(message).build();
  }
}
origin: org.eclipse.dirigible/dirigible-engine-javascript

/**
 * Execute service post.
 *
 * @param path
 *            the path
 * @return result of the execution of the service
 */
@POST
@Path("/{path:.*}")
@ApiOperation("Execute Server Side JavaScript Resource")
@ApiResponses({ @ApiResponse(code = 200, message = "Execution Result") })
public Response executeJavascriptServicePost(@PathParam("path") String path) {
  return executeJavascriptServiceGet(path);
}
origin: org.eclipse.dirigible/dirigible-engine-js

/**
 * Execute service delete.
 *
 * @param path
 *            the path
 * @return result of the execution of the service
 */
@DELETE
@Path("/{path:.*}")
@ApiOperation("Execute Server Side JavaScript Resource")
@ApiResponses({ @ApiResponse(code = 200, message = "Execution Result") })
public Response executeServiceDelete(@PathParam("path") String path) {
  return executeService(path);
}
origin: org.eclipse.dirigible/dirigible-engine-javascript

/**
 * Execute service delete.
 *
 * @param path
 *            the path
 * @return result of the execution of the service
 */
@DELETE
@Path("/{path:.*}")
@ApiOperation("Execute Server Side JavaScript Resource")
@ApiResponses({ @ApiResponse(code = 200, message = "Execution Result") })
public Response executeJavascriptServiceDelete(@PathParam("path") String path) {
  return executeJavascriptServiceGet(path);
}
origin: org.eclipse.dirigible/dirigible-engine-js

/**
 * Execute service put.
 *
 * @param path
 *            the path
 * @return result of the execution of the service
 */
@PUT
@Path("/{path:.*}")
@ApiOperation("Execute Server Side JavaScript Resource")
@ApiResponses({ @ApiResponse(code = 200, message = "Execution Result") })
public Response executeServicePut(@PathParam("path") String path) {
  return executeService(path);
}
origin: org.eclipse.dirigible/dirigible-engine-javascript

/**
 * Execute service head.
 *
 * @param path
 *            the path
 * @return result of the execution of the service
 */
@HEAD
@Path("/{path:.*}")
@ApiOperation("Execute Server Side JavaScript Resource")
@ApiResponses({ @ApiResponse(code = 200, message = "Execution Result") })
public Response executeJavascriptServiceHead(@PathParam("path") String path) {
  return executeJavascriptServiceGet(path);
}
origin: org.eclipse.dirigible/dirigible-engine-js

/**
 * Execute service head.
 *
 * @param path
 *            the path
 * @return result of the execution of the service
 */
@HEAD
@Path("/{path:.*}")
@ApiOperation("Execute Server Side JavaScript Resource")
@ApiResponses({ @ApiResponse(code = 200, message = "Execution Result") })
public Response executeServiceHead(@PathParam("path") String path) {
  return executeService(path);
}
org.eclipse.dirigible.engine.js.serviceJavascriptEngineRestService

Javadoc

Front facing REST service serving the Javascript backend services.

Most used methods

  • sendErrorInternalServerError
  • executeJavascriptServiceGet
    Execute service.
  • executeService
    Execute service.

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JButton (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now