Class OServerCommandPostUploadSingleFile
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.multipart.OHttpMultipartRequestCommand<String,ORID>
com.orientechnologies.orient.server.network.protocol.http.command.post.OServerCommandPostUploadSingleFile
- All Implemented Interfaces:
OServerCommand
- Author:
- Luca Molino (molino.luca--at--gmail.com)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.orientechnologies.orient.server.network.protocol.http.multipart.OHttpMultipartRequestCommand
OHttpMultipartRequestCommand.STATUS -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringWriterprotected ODatabaseDocumentInternalprotected Stringprotected Stringprotected ORIDprotected Stringprotected longprotected OJSONWriterFields 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.protected Stringprotected StringString[]getNames()protected voidprocessBaseContent(OHttpRequest iRequest, String iContentResult, HashMap<String, String> headers) protected voidprocessFileContent(OHttpRequest iRequest, ORID iContentResult, HashMap<String, String> headers) booleansaveRecord(ODatabaseDocumentInternal database, OHttpRequest iRequest, OHttpResponse iResponse) Methods inherited from class com.orientechnologies.orient.server.network.protocol.http.multipart.OHttpMultipartRequestCommand
parse, parseBaseContent, parseFileContent, parseHeader, parsePartHeaders, readBoundary, readBoundaryCrLfMethods 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
-
Field Details
-
buffer
-
writer
-
fileRID
-
fileDocument
-
fileName
-
fileType
-
now
protected long now -
database
-
-
Constructor Details
-
OServerCommandPostUploadSingleFile
public OServerCommandPostUploadSingleFile()
-
-
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
-
processBaseContent
protected void processBaseContent(OHttpRequest iRequest, String iContentResult, HashMap<String, String> headers) throws Exception- Specified by:
processBaseContentin classOHttpMultipartRequestCommand<String,ORID> - Throws:
Exception
-
processFileContent
protected void processFileContent(OHttpRequest iRequest, ORID iContentResult, HashMap<String, String> headers) throws Exception- Specified by:
processFileContentin classOHttpMultipartRequestCommand<String,ORID> - Throws:
Exception
-
saveRecord
public boolean saveRecord(ODatabaseDocumentInternal database, OHttpRequest iRequest, OHttpResponse iResponse) throws InterruptedException, IOException - Throws:
InterruptedExceptionIOException
-
getDocumentParamenterName
- Specified by:
getDocumentParamenterNamein classOHttpMultipartRequestCommand<String,ORID>
-
getFileParamenterName
- Specified by:
getFileParamenterNamein classOHttpMultipartRequestCommand<String,ORID>
-
getNames
-