
public class OServerCommandPostUploadSingleFile extends OHttpMultipartRequestCommand<java.lang.String,com.orientechnologies.orient.core.id.ORID>
OHttpMultipartRequestCommand.STATUS| Modifier and Type | Field and Description |
|---|---|
protected java.io.StringWriter |
buffer |
protected ODatabaseDocumentInternal |
database |
protected java.lang.String |
fileDocument |
protected java.lang.String |
fileName |
protected com.orientechnologies.orient.core.id.ORID |
fileRID |
protected java.lang.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 java.lang.String |
getDocumentParamenterName() |
protected java.lang.String |
getFileParamenterName() |
java.lang.String[] |
getNames() |
protected void |
processBaseContent(OHttpRequest iRequest,
java.lang.String iContentResult,
java.util.HashMap<java.lang.String,java.lang.String> headers) |
protected void |
processFileContent(OHttpRequest iRequest,
com.orientechnologies.orient.core.id.ORID iContentResult,
java.util.HashMap<java.lang.String,java.lang.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 java.io.StringWriter buffer
protected com.orientechnologies.orient.core.serialization.serializer.OJSONWriter writer
protected com.orientechnologies.orient.core.id.ORID fileRID
protected java.lang.String fileDocument
protected java.lang.String fileName
protected java.lang.String fileType
protected long now
protected ODatabaseDocumentInternal database
public boolean execute(OHttpRequest iRequest, OHttpResponse iResponse) throws java.lang.Exception
OServerCommandjava.lang.Exceptionprotected void processBaseContent(OHttpRequest iRequest, java.lang.String iContentResult, java.util.HashMap<java.lang.String,java.lang.String> headers) throws java.lang.Exception
processBaseContent in class OHttpMultipartRequestCommand<java.lang.String,com.orientechnologies.orient.core.id.ORID>java.lang.Exceptionprotected void processFileContent(OHttpRequest iRequest, com.orientechnologies.orient.core.id.ORID iContentResult, java.util.HashMap<java.lang.String,java.lang.String> headers) throws java.lang.Exception
processFileContent in class OHttpMultipartRequestCommand<java.lang.String,com.orientechnologies.orient.core.id.ORID>java.lang.Exceptionpublic boolean saveRecord(OHttpRequest iRequest, OHttpResponse iResponse) throws java.lang.InterruptedException, java.io.IOException
java.lang.InterruptedExceptionjava.io.IOExceptionprotected java.lang.String getDocumentParamenterName()
getDocumentParamenterName in class OHttpMultipartRequestCommand<java.lang.String,com.orientechnologies.orient.core.id.ORID>protected java.lang.String getFileParamenterName()
getFileParamenterName in class OHttpMultipartRequestCommand<java.lang.String,com.orientechnologies.orient.core.id.ORID>public java.lang.String[] getNames()
Copyright © 2009–2022 OrientDB. All rights reserved.