public class OServerCommandPostImportDatabase extends OHttpMultipartRequestCommand<String,InputStream> implements OCommandOutputListener
OHttpMultipartRequestCommand.STATUS
Modifier and Type | Field and Description |
---|---|
protected StringWriter |
buffer |
protected ODatabaseDocumentInternal |
database |
protected InputStream |
importData |
protected static String[] |
NAMES |
DBNAME_DIR_SEPARATOR, SESSIONID_LOGOUT, SESSIONID_UNAUTHORIZED
server
Constructor and Description |
---|
OServerCommandPostImportDatabase() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(OHttpRequest iRequest,
OHttpResponse iResponse)
Executes the command requested.
|
protected String |
getDocumentParamenterName() |
protected String |
getFileParamenterName() |
String[] |
getNames() |
void |
onMessage(String iText) |
protected void |
processBaseContent(OHttpRequest iRequest,
String iContentResult,
HashMap<String,String> headers) |
protected void |
processFileContent(OHttpRequest iRequest,
InputStream iContentResult,
HashMap<String,String> headers) |
parse, parseBaseContent, parseFileContent, parseHeader, parsePartHeaders, readBoundary, readBoundaryCrLf
afterExecute, authenticate, beforeExecute, getProfiledDatabaseInstance, getProfiledDatabaseInstanceBasic, getProfiledDatabaseInstanceToken, sendAuthorizationRequest
checkSyntax, configure, getServer, isJsonResponse, sendJsonError, setNoCache
protected static final String[] NAMES
protected StringWriter buffer
protected InputStream importData
protected ODatabaseDocumentInternal database
public boolean execute(OHttpRequest iRequest, OHttpResponse iResponse) throws Exception
OServerCommand
execute
in interface OServerCommand
Exception
protected void processBaseContent(OHttpRequest iRequest, String iContentResult, HashMap<String,String> headers) throws Exception
processBaseContent
in class OHttpMultipartRequestCommand<String,InputStream>
Exception
protected void processFileContent(OHttpRequest iRequest, InputStream iContentResult, HashMap<String,String> headers) throws Exception
processFileContent
in class OHttpMultipartRequestCommand<String,InputStream>
Exception
protected String getDocumentParamenterName()
getDocumentParamenterName
in class OHttpMultipartRequestCommand<String,InputStream>
protected String getFileParamenterName()
getFileParamenterName
in class OHttpMultipartRequestCommand<String,InputStream>
public String[] getNames()
getNames
in interface OServerCommand
public void onMessage(String iText)
onMessage
in interface OCommandOutputListener
Copyright © 2009–2020 OrientDB. All rights reserved.