Class OServerCommandAbstract
java.lang.Object
com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
- All Implemented Interfaces:
OServerCommand
- Direct Known Subclasses:
OServerCommandAuthenticatedDbAbstract,OServerCommandAuthenticatedServerAbstract,OServerCommandConfigurableAbstract,OServerCommandForward,OServerCommandGetDisconnect,OServerCommandGetPing,OServerCommandGetSSO,OServerCommandOptions,OServerCommandPatternAbstract,OServerCommandPostAuthToken
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanafterExecute(OHttpRequest iRequest, OHttpResponse iResponse) Called after to execute.booleanbeforeExecute(OHttpRequest iRequest, OHttpResponse iResponse) Called before to execute.protected String[]checkSyntax(String iURL, int iArgumentCount, String iSyntax) voidprotected booleanisJsonResponse(OHttpResponse response) protected voidsendJsonError(OHttpResponse iResponse, int iCode, String iReason, String iContentType, Object iContent, String iHeaders) protected voidsetNoCache(OHttpResponse iResponse) Methods 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
-
server
-
-
Constructor Details
-
OServerCommandAbstract
public OServerCommandAbstract()Default constructor. Disable cache of content at HTTP level
-
-
Method Details
-
beforeExecute
Description copied from interface:OServerCommandCalled before to execute. Useful to make checks.- Specified by:
beforeExecutein interfaceOServerCommandiResponse- TODO- Throws:
IOException
-
afterExecute
Description copied from interface:OServerCommandCalled after to execute. Useful to free resources.- Specified by:
afterExecutein interfaceOServerCommandiResponse- TODO- Throws:
IOException
-
checkSyntax
-
getServer
-
configure
- Specified by:
configurein interfaceOServerCommand
-
setNoCache
-
isJsonResponse
-
sendJsonError
protected void sendJsonError(OHttpResponse iResponse, int iCode, String iReason, String iContentType, Object iContent, String iHeaders) throws IOException - Throws:
IOException
-