public abstract class OServerCommandAbstract extends Object implements OServerCommand
Constructor and Description |
---|
OServerCommandAbstract()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
afterExecute(OHttpRequest iRequest,
OHttpResponse iResponse)
Called after to execute.
|
boolean |
beforeExecute(OHttpRequest iRequest,
OHttpResponse iResponse)
Called before to execute.
|
protected String[] |
checkSyntax(String iURL,
int iArgumentCount,
String iSyntax) |
void |
configure(OServer server) |
OServer |
getServer() |
protected boolean |
isJsonResponse(OHttpResponse response) |
protected void |
sendJsonError(OHttpResponse iResponse,
int iCode,
String iReason,
String iContentType,
Object iContent,
String iHeaders) |
protected void |
setNoCache(OHttpResponse iResponse) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, getNames
protected OServer server
public OServerCommandAbstract()
public boolean beforeExecute(OHttpRequest iRequest, OHttpResponse iResponse) throws IOException
OServerCommand
beforeExecute
in interface OServerCommand
iResponse
- TODOIOException
public boolean afterExecute(OHttpRequest iRequest, OHttpResponse iResponse) throws IOException
OServerCommand
afterExecute
in interface OServerCommand
iResponse
- TODOIOException
public OServer getServer()
public void configure(OServer server)
configure
in interface OServerCommand
protected void setNoCache(OHttpResponse iResponse)
protected boolean isJsonResponse(OHttpResponse response)
protected void sendJsonError(OHttpResponse iResponse, int iCode, String iReason, String iContentType, Object iContent, String iHeaders) throws IOException
IOException
Copyright © 2009–2020 OrientDB. All rights reserved.