public class OServerCommandPostUploadSingleFile extends OHttpMultipartRequestCommand<String,ORID>
OHttpMultipartRequestCommand.STATUS
Modifier and Type | Field and Description |
---|---|
protected StringWriter |
buffer |
protected ODatabaseDocumentInternal |
database |
protected String |
fileDocument |
protected String |
fileName |
protected ORID |
fileRID |
protected String |
fileType |
protected long |
now |
protected OJSONWriter |
writer |
DBNAME_DIR_SEPARATOR, SESSIONID_LOGOUT, SESSIONID_UNAUTHORIZED
server
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,
ORID iContentResult,
HashMap<String,String> headers) |
boolean |
saveRecord(OHttpRequest iRequest,
OHttpResponse iResponse) |
parse, parseBaseContent, parseFileContent, parseHeader, parsePartHeaders, readBoundary, readBoundaryCrLf
afterExecute, authenticate, beforeExecute, getProfiledDatabaseInstance, getProfiledDatabaseInstanceBasic, getProfiledDatabaseInstanceToken, sendAuthorizationRequest
checkSyntax, configure, getServer, isJsonResponse, sendJsonError, setNoCache
protected StringWriter buffer
protected OJSONWriter writer
protected ORID fileRID
protected String fileDocument
protected String fileName
protected String fileType
protected long now
protected ODatabaseDocumentInternal database
public boolean execute(OHttpRequest iRequest, OHttpResponse iResponse) throws Exception
OServerCommand
Exception
protected void processBaseContent(OHttpRequest iRequest, String iContentResult, HashMap<String,String> headers) throws Exception
processBaseContent
in class OHttpMultipartRequestCommand<String,ORID>
Exception
protected void processFileContent(OHttpRequest iRequest, ORID iContentResult, HashMap<String,String> headers) throws Exception
processFileContent
in class OHttpMultipartRequestCommand<String,ORID>
Exception
public boolean saveRecord(OHttpRequest iRequest, OHttpResponse iResponse) throws InterruptedException, IOException
InterruptedException
IOException
protected String getDocumentParamenterName()
getDocumentParamenterName
in class OHttpMultipartRequestCommand<String,ORID>
protected String getFileParamenterName()
getFileParamenterName
in class OHttpMultipartRequestCommand<String,ORID>
public String[] getNames()
Copyright © 2009–2020 OrientDB. All rights reserved.