
public class OServerCommandPostUploadSingleFile extends OHttpMultipartRequestCommand<String,com.orientechnologies.orient.core.id.ORID>
OHttpMultipartRequestCommand.STATUS| Modifier and Type | Field and Description |
|---|---|
protected StringWriter |
buffer |
protected com.orientechnologies.orient.core.db.ODatabaseDocumentInternal |
database |
protected String |
fileDocument |
protected String |
fileName |
protected com.orientechnologies.orient.core.id.ORID |
fileRID |
protected String |
fileType |
protected long |
now |
protected com.orientechnologies.orient.core.serialization.serializer.OJSONWriter |
writer |
DBNAME_DIR_SEPARATOR, SESSIONID_LOGOUT, SESSIONID_UNAUTHORIZEDserver| Constructor and Description |
|---|
OServerCommandPostUploadSingleFile() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(OHttpRequest iRequest,
OHttpResponse iResponse)
Executes the command requested.
|
protected String |
getDocumentParamenterName() |
protected String |
getFileParamenterName() |
String[] |
getNames() |
protected void |
processBaseContent(OHttpRequest iRequest,
String iContentResult,
HashMap<String,String> headers) |
protected void |
processFileContent(OHttpRequest iRequest,
com.orientechnologies.orient.core.id.ORID iContentResult,
HashMap<String,String> headers) |
boolean |
saveRecord(OHttpRequest iRequest,
OHttpResponse iResponse) |
parse, parseBaseContent, parseFileContent, parseHeader, parsePartHeaders, readBoundary, readBoundaryCrLfafterExecute, authenticate, beforeExecute, getProfiledDatabaseInstance, getProfiledDatabaseInstanceBasic, getProfiledDatabaseInstanceToken, sendAuthorizationRequestcheckSyntax, configure, getServer, isJsonResponse, sendJsonError, setNoCacheprotected StringWriter buffer
protected com.orientechnologies.orient.core.serialization.serializer.OJSONWriter writer
protected com.orientechnologies.orient.core.id.ORID fileRID
protected String fileDocument
protected String fileName
protected String fileType
protected long now
protected com.orientechnologies.orient.core.db.ODatabaseDocumentInternal database
public boolean execute(OHttpRequest iRequest, OHttpResponse iResponse) throws Exception
OServerCommandExceptionprotected void processBaseContent(OHttpRequest iRequest, String iContentResult, HashMap<String,String> headers) throws Exception
processBaseContent in class OHttpMultipartRequestCommand<String,com.orientechnologies.orient.core.id.ORID>Exceptionprotected void processFileContent(OHttpRequest iRequest, com.orientechnologies.orient.core.id.ORID iContentResult, HashMap<String,String> headers) throws Exception
processFileContent in class OHttpMultipartRequestCommand<String,com.orientechnologies.orient.core.id.ORID>Exceptionpublic boolean saveRecord(OHttpRequest iRequest, OHttpResponse iResponse) throws InterruptedException, IOException
InterruptedExceptionIOExceptionprotected String getDocumentParamenterName()
getDocumentParamenterName in class OHttpMultipartRequestCommand<String,com.orientechnologies.orient.core.id.ORID>protected String getFileParamenterName()
getFileParamenterName in class OHttpMultipartRequestCommand<String,com.orientechnologies.orient.core.id.ORID>public String[] getNames()
Copyright © 2009–2016 OrientDB. All rights reserved.