Package com.arcadedb.server.http.handler
Class PostCommandHandler
- java.lang.Object
-
- com.arcadedb.server.http.handler.AbstractServerHttpHandler
-
- com.arcadedb.server.http.handler.DatabaseAbstractHandler
-
- com.arcadedb.server.http.handler.AbstractQueryHandler
-
- com.arcadedb.server.http.handler.PostCommandHandler
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
- Direct Known Subclasses:
PostQueryHandler
public class PostCommandHandler extends AbstractQueryHandler
-
-
Field Summary
-
Fields inherited from class com.arcadedb.server.http.handler.AbstractQueryHandler
DEFAULT_LIMIT
-
Fields inherited from class com.arcadedb.server.http.handler.AbstractServerHttpHandler
httpServer
-
-
Constructor Summary
Constructors Constructor Description PostCommandHandler(HttpServer httpServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionResponse
execute(io.undertow.server.HttpServerExchange exchange, ServerSecurityUser user, Database database)
protected ResultSet
executeCommand(Database database, String language, String command, Map<String,Object> paramMap)
protected void
executeCommandAsync(Database database, String language, String command, Map<String,Object> paramMap)
protected boolean
mustExecuteOnWorkerThread()
Returns true if the handler is reading the payload in the request.-
Methods inherited from class com.arcadedb.server.http.handler.AbstractQueryHandler
analyzePropertyValue, analyzeResultContent, mapParams, serializeResultSet
-
Methods inherited from class com.arcadedb.server.http.handler.DatabaseAbstractHandler
execute, requiresDatabase, requiresTransaction, setTransactionInThreadLocal
-
Methods inherited from class com.arcadedb.server.http.handler.AbstractServerHttpHandler
authenticate, checkRootUser, createResult, decode, encodeError, error2json, getQueryParameter, getQueryParameter, handleRequest, isRequireAuthentication, parseRequestPayload
-
-
-
-
Constructor Detail
-
PostCommandHandler
public PostCommandHandler(HttpServer httpServer)
-
-
Method Detail
-
mustExecuteOnWorkerThread
protected boolean mustExecuteOnWorkerThread()
Description copied from class:AbstractServerHttpHandler
Returns true if the handler is reading the payload in the request. In this case, the execution is delegated to the worker thread.- Overrides:
mustExecuteOnWorkerThread
in classAbstractServerHttpHandler
-
execute
public ExecutionResponse execute(io.undertow.server.HttpServerExchange exchange, ServerSecurityUser user, Database database) throws IOException
- Specified by:
execute
in classDatabaseAbstractHandler
- Throws:
IOException
-
executeCommand
protected ResultSet executeCommand(Database database, String language, String command, Map<String,Object> paramMap)
-
-