Class OServerCommandAuthenticatedDbAbstract
java.lang.Object
com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract
- All Implemented Interfaces:
OServerCommand
- Direct Known Subclasses:
OHttpMultipartRequestCommand,OServerCommandAbstractLogic,OServerCommandAuthenticatedPatternAbstract,OServerCommandDeleteClass,OServerCommandDeleteProperty,OServerCommandDocumentAbstract,OServerCommandGetClass,OServerCommandGetCluster,OServerCommandGetConnect,OServerCommandGetDictionary,OServerCommandGetDocument,OServerCommandGetDocumentByClass,OServerCommandGetExportDatabase,OServerCommandGetFileDownload,OServerCommandGetGephi,OServerCommandGetQuery,OServerCommandGetStorageAllocation,OServerCommandGetSupportedLanguages,OServerCommandPostClass,OServerCommandPostCommand,OServerCommandPostKillDbConnection,OServerCommandPostProperty,OServerCommandPostStudio
Database based authenticated command. Authenticates against the database taken as second
parameter of the URL. The URL must be in this format:
/ [/...]
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
server -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanafterExecute(OHttpRequest iRequest, OHttpResponse iResponse) Called after to execute.protected booleanauthenticate(OHttpRequest iRequest, OHttpResponse iResponse, List<String> iAuthenticationParts, String iDatabaseName) booleanbeforeExecute(OHttpRequest iRequest, OHttpResponse iResponse) Called before to execute.protected ODatabaseDocumentInternalgetProfiledDatabaseInstance(OHttpRequest iRequest) protected ODatabaseDocumentInternalgetProfiledDatabaseInstanceBasic(OHttpRequest iRequest) protected ODatabaseDocumentInternalgetProfiledDatabaseInstanceToken(OHttpRequest iRequest) protected voidsendAuthorizationRequest(OHttpRequest iRequest, OHttpResponse iResponse, String iDatabaseName) Methods inherited from class com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
checkSyntax, configure, getServer, isJsonResponse, sendJsonError, setNoCacheMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.server.network.protocol.http.command.OServerCommand
execute, getNames
-
Field Details
-
DBNAME_DIR_SEPARATOR
public static final char DBNAME_DIR_SEPARATOR- See Also:
-
SESSIONID_UNAUTHORIZED
- See Also:
-
SESSIONID_LOGOUT
- See Also:
-
-
Constructor Details
-
OServerCommandAuthenticatedDbAbstract
public OServerCommandAuthenticatedDbAbstract()
-
-
Method Details
-
beforeExecute
Description copied from interface:OServerCommandCalled before to execute. Useful to make checks.- Specified by:
beforeExecutein interfaceOServerCommand- Overrides:
beforeExecutein classOServerCommandAbstractiResponse- TODO- Throws:
IOException
-
afterExecute
Description copied from interface:OServerCommandCalled after to execute. Useful to free resources.- Specified by:
afterExecutein interfaceOServerCommand- Overrides:
afterExecutein classOServerCommandAbstractiResponse- TODO- Throws:
IOException
-
authenticate
protected boolean authenticate(OHttpRequest iRequest, OHttpResponse iResponse, List<String> iAuthenticationParts, String iDatabaseName) throws IOException - Throws:
IOException
-
sendAuthorizationRequest
protected void sendAuthorizationRequest(OHttpRequest iRequest, OHttpResponse iResponse, String iDatabaseName) throws IOException - Throws:
IOException
-
getProfiledDatabaseInstance
protected ODatabaseDocumentInternal getProfiledDatabaseInstance(OHttpRequest iRequest) throws InterruptedException - Throws:
InterruptedException
-
getProfiledDatabaseInstanceToken
protected ODatabaseDocumentInternal getProfiledDatabaseInstanceToken(OHttpRequest iRequest) throws InterruptedException - Throws:
InterruptedException
-
getProfiledDatabaseInstanceBasic
protected ODatabaseDocumentInternal getProfiledDatabaseInstanceBasic(OHttpRequest iRequest) throws InterruptedException - Throws:
InterruptedException
-