public abstract class OServerCommandAuthenticatedServerAbstract extends OServerCommandAbstract
Modifier and Type | Field and Description |
---|---|
protected String |
serverPassword |
protected String |
serverUser |
server
Modifier | Constructor and Description |
---|---|
protected |
OServerCommandAuthenticatedServerAbstract(String iRequiredResource) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
authenticate(OHttpRequest iRequest,
OHttpResponse iResponse,
boolean iAskForAuthentication) |
protected boolean |
authenticate(OHttpRequest iRequest,
OHttpResponse iResponse,
boolean iAskForAuthentication,
String resource) |
boolean |
beforeExecute(OHttpRequest iRequest,
OHttpResponse iResponse)
Called before to execute.
|
protected boolean |
checkGuestAccess() |
String |
getResource() |
String |
getUser(OHttpRequest iRequest) |
protected void |
sendAuthorizationRequest(OHttpRequest iRequest,
OHttpResponse iResponse) |
protected void |
sendNotAuthorizedResponse(OHttpRequest iRequest,
OHttpResponse iResponse) |
afterExecute, checkSyntax, configure, getServer, isJsonResponse, sendJsonError, setNoCache
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, getNames
protected OServerCommandAuthenticatedServerAbstract(String iRequiredResource)
public boolean beforeExecute(OHttpRequest iRequest, OHttpResponse iResponse) throws IOException
OServerCommand
beforeExecute
in interface OServerCommand
beforeExecute
in class OServerCommandAbstract
iResponse
- TODOIOException
protected boolean authenticate(OHttpRequest iRequest, OHttpResponse iResponse, boolean iAskForAuthentication, String resource) throws IOException
IOException
protected boolean authenticate(OHttpRequest iRequest, OHttpResponse iResponse, boolean iAskForAuthentication) throws IOException
IOException
protected boolean checkGuestAccess()
protected void sendNotAuthorizedResponse(OHttpRequest iRequest, OHttpResponse iResponse) throws IOException
IOException
protected void sendAuthorizationRequest(OHttpRequest iRequest, OHttpResponse iResponse) throws IOException
IOException
public String getUser(OHttpRequest iRequest)
public String getResource()
Copyright © 2009–2020 OrientDB. All rights reserved.