
public class OServerCommandPostImportDatabase extends OHttpMultipartRequestCommand<String,InputStream> implements com.orientechnologies.orient.core.command.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_UNAUTHORIZEDserver| 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, readBoundaryCrLfafterExecute, authenticate, beforeExecute, getProfiledDatabaseInstance, getProfiledDatabaseInstanceBasic, getProfiledDatabaseInstanceToken, sendAuthorizationRequestcheckSyntax, configure, getServer, isJsonResponse, sendJsonError, setNoCacheprotected static final String[] NAMES
protected StringWriter buffer
protected InputStream importData
protected ODatabaseDocumentInternal database
public boolean execute(OHttpRequest iRequest, OHttpResponse iResponse) throws Exception
OServerCommandexecute in interface OServerCommandExceptionprotected void processBaseContent(OHttpRequest iRequest, String iContentResult, HashMap<String,String> headers) throws Exception
processBaseContent in class OHttpMultipartRequestCommand<String,InputStream>Exceptionprotected void processFileContent(OHttpRequest iRequest, InputStream iContentResult, HashMap<String,String> headers) throws Exception
processFileContent in class OHttpMultipartRequestCommand<String,InputStream>Exceptionprotected String getDocumentParamenterName()
getDocumentParamenterName in class OHttpMultipartRequestCommand<String,InputStream>protected String getFileParamenterName()
getFileParamenterName in class OHttpMultipartRequestCommand<String,InputStream>public String[] getNames()
getNames in interface OServerCommandpublic void onMessage(String iText)
onMessage in interface com.orientechnologies.orient.core.command.OCommandOutputListenerCopyright © 2009–2018 OrientDB. All rights reserved.