Class GraalVMJavascriptEngineRestService
java.lang.Object
org.eclipse.dirigible.commons.api.service.AbstractRestService
org.eclipse.dirigible.engine.js.graalvm.service.GraalVMJavascriptEngineRestService
- All Implemented Interfaces:
IRestService
@Path("/graalvm")
public class GraalVMJavascriptEngineRestService
extends AbstractRestService
implements IRestService
Front facing REST service serving the GraalVM based Javascript backend services.
-
Field Summary
Fields inherited from class org.eclipse.dirigible.commons.api.service.AbstractRestService
NO_LOGGED_IN_USER -
Constructor Summary
Constructors Constructor Description GraalVMJavascriptEngineRestService() -
Method Summary
Modifier and Type Method Description javax.ws.rs.core.ResponseexecuteGraalVMServiceDelete(String path)Execute service delete.javax.ws.rs.core.ResponseexecuteGraalVMServiceGet(String path)Execute service.javax.ws.rs.core.ResponseexecuteGraalVMServiceHead(String path)Execute service head.javax.ws.rs.core.ResponseexecuteGraalVMServicePost(String path)Execute service post.javax.ws.rs.core.ResponseexecuteGraalVMServicePut(String path)Execute service put.protected org.slf4j.LoggergetLogger()Gets the logger.Class<? extends IRestService>getType()Gets the type.Methods inherited from class org.eclipse.dirigible.commons.api.service.AbstractRestService
createErrorResponse, createErrorResponseBadRequest, createErrorResponseForbidden, createErrorResponseInternalServerError, createErrorResponseNotFound, createErrorResponseUnauthorized
-
Constructor Details
-
GraalVMJavascriptEngineRestService
public GraalVMJavascriptEngineRestService()
-
-
Method Details
-
executeGraalVMServiceGet
@GET @Path("/{path:.*}") public javax.ws.rs.core.Response executeGraalVMServiceGet(@PathParam("path") String path) throws ScriptingExceptionExecute service.- Parameters:
path- the path- Returns:
- result of the execution of the service
- Throws:
ScriptingException- exception
-
executeGraalVMServicePost
@POST @Path("/{path:.*}") public javax.ws.rs.core.Response executeGraalVMServicePost(@PathParam("path") String path) throws ScriptingExceptionExecute service post.- Parameters:
path- the path- Returns:
- result of the execution of the service
- Throws:
ScriptingException- exception
-
executeGraalVMServicePut
@PUT @Path("/{path:.*}") public javax.ws.rs.core.Response executeGraalVMServicePut(@PathParam("path") String path) throws ScriptingExceptionExecute service put.- Parameters:
path- the path- Returns:
- result of the execution of the service
- Throws:
ScriptingException- exception
-
executeGraalVMServiceDelete
@DELETE @Path("/{path:.*}") public javax.ws.rs.core.Response executeGraalVMServiceDelete(@PathParam("path") String path) throws ScriptingExceptionExecute service delete.- Parameters:
path- the path- Returns:
- result of the execution of the service
- Throws:
ScriptingException- exception
-
executeGraalVMServiceHead
@HEAD @Path("/{path:.*}") public javax.ws.rs.core.Response executeGraalVMServiceHead(@PathParam("path") String path) throws ScriptingExceptionExecute service head.- Parameters:
path- the path- Returns:
- result of the execution of the service
- Throws:
ScriptingException- exception
-
getType
Gets the type.- Specified by:
getTypein interfaceIRestService- Returns:
- the type
-
getLogger
protected org.slf4j.Logger getLogger()Gets the logger.- Specified by:
getLoggerin classAbstractRestService- Returns:
- the logger
-