Class OServerCommandPostAuthToken
java.lang.Object
com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
com.orientechnologies.orient.server.network.protocol.http.command.post.OServerCommandPostAuthToken
- All Implemented Interfaces:
OServerCommand
Created by emrul on 14/09/14.
- Author:
- Emrul Islam <emrul@emrul.com> Copyright 2014 Emrul Islam
-
Field Summary
Fields inherited from class com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
server -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringauthenticate(String username, String password, String iDatabaseName) booleanexecute(OHttpRequest iRequest, OHttpResponse iResponse) Executes the command requested.String[]getNames()protected voidsendAuthorizationRequest(OHttpRequest iRequest, OHttpResponse iResponse, String iDatabaseName) protected voidsendError(OHttpRequest iRequest, OHttpResponse iResponse, ODocument error) Methods inherited from class com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
afterExecute, beforeExecute, checkSyntax, configure, getServer, isJsonResponse, sendJsonError, setNoCache
-
Constructor Details
-
OServerCommandPostAuthToken
public OServerCommandPostAuthToken()
-
-
Method Details
-
getNames
-
execute
Description copied from interface:OServerCommandExecutes the command requested.- Returns:
- boolean value that indicates if this command is part of a chain
- Throws:
Exception
-
authenticate
protected String authenticate(String username, String password, String iDatabaseName) throws IOException - Throws:
IOException
-
sendError
protected void sendError(OHttpRequest iRequest, OHttpResponse iResponse, ODocument error) throws IOException - Throws:
IOException
-
sendAuthorizationRequest
protected void sendAuthorizationRequest(OHttpRequest iRequest, OHttpResponse iResponse, String iDatabaseName) throws IOException - Throws:
IOException
-