Class CommandEngineRestService
java.lang.Object
org.eclipse.dirigible.commons.api.service.AbstractRestService
org.eclipse.dirigible.engine.command.service.CommandEngineRestService
- All Implemented Interfaces:
IRestService
@Path("/command")
public class CommandEngineRestService
extends AbstractRestService
implements IRestService
Front facing REST service serving the 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 CommandEngineRestService() -
Method Summary
Modifier and Type Method Description javax.ws.rs.core.ResponseexecuteCommandServiceDelete(String path)Execute service delete.javax.ws.rs.core.ResponseexecuteCommandServiceGet(String path)Execute service.javax.ws.rs.core.ResponseexecuteCommandServiceHead(String path)Execute service head.javax.ws.rs.core.ResponseexecuteCommandServicePost(String path)Execute service post.javax.ws.rs.core.ResponseexecuteCommandServicePut(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
-
CommandEngineRestService
public CommandEngineRestService()
-
-
Method Details
-
executeCommandServiceGet
@GET @Path("/{path:.*}") public javax.ws.rs.core.Response executeCommandServiceGet(@PathParam("path") String path) throws ScriptingExceptionExecute service.- Parameters:
path- the path- Returns:
- result of the execution of the service
- Throws:
ScriptingException- exception
-
executeCommandServicePost
@POST @Path("/{path:.*}") public javax.ws.rs.core.Response executeCommandServicePost(@PathParam("path") String path) throws ScriptingExceptionExecute service post.- Parameters:
path- the path- Returns:
- result of the execution of the service
- Throws:
ScriptingException- exception
-
executeCommandServicePut
@PUT @Path("/{path:.*}") public javax.ws.rs.core.Response executeCommandServicePut(@PathParam("path") String path) throws ScriptingExceptionExecute service put.- Parameters:
path- the path- Returns:
- result of the execution of the service
- Throws:
ScriptingException- exception
-
executeCommandServiceDelete
@DELETE @Path("/{path:.*}") public javax.ws.rs.core.Response executeCommandServiceDelete(@PathParam("path") String path) throws ScriptingExceptionExecute service delete.- Parameters:
path- the path- Returns:
- result of the execution of the service
- Throws:
ScriptingException- exception
-
executeCommandServiceHead
@HEAD @Path("/{path:.*}") public javax.ws.rs.core.Response executeCommandServiceHead(@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
-