Class OServerCommandGetFileDownload
java.lang.Object
com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract
com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetFileDownload
- All Implemented Interfaces:
OServerCommand
- Author:
- Luca Molino (molino.luca--at--gmail.com)
-
Field Summary
Fields inherited from class com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract
DBNAME_DIR_SEPARATOR, SESSIONID_LOGOUT, SESSIONID_UNAUTHORIZEDFields inherited from class com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
server -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(OHttpRequest iRequest, OHttpResponse iResponse) Executes the command requested.String[]getNames()protected voidsendBinaryFieldFileContent(OHttpRequest iRequest, OHttpResponse iResponse, int iCode, String iReason, String iContentType, byte[] record, String iFileName) protected voidsendORecordBinaryFileContent(OHttpRequest iRequest, OHttpResponse iResponse, int iCode, String iReason, String iContentType, OBlob record, String iFileName) Methods inherited from class com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract
afterExecute, authenticate, beforeExecute, getProfiledDatabaseInstance, getProfiledDatabaseInstanceBasic, getProfiledDatabaseInstanceToken, sendAuthorizationRequestMethods inherited from class com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
checkSyntax, configure, getServer, isJsonResponse, sendJsonError, setNoCache
-
Constructor Details
-
OServerCommandGetFileDownload
public OServerCommandGetFileDownload()
-
-
Method Details
-
execute
Description copied from interface:OServerCommandExecutes the command requested.- Returns:
- boolean value that indicates if this command is part of a chain
- Throws:
Exception
-
sendORecordBinaryFileContent
protected void sendORecordBinaryFileContent(OHttpRequest iRequest, OHttpResponse iResponse, int iCode, String iReason, String iContentType, OBlob record, String iFileName) throws IOException - Throws:
IOException
-
sendBinaryFieldFileContent
protected void sendBinaryFieldFileContent(OHttpRequest iRequest, OHttpResponse iResponse, int iCode, String iReason, String iContentType, byte[] record, String iFileName) throws IOException - Throws:
IOException
-
getNames
-