Class OServerCommandPostImportDatabase
java.lang.Object
com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract
com.orientechnologies.orient.server.network.protocol.http.multipart.OHttpMultipartRequestCommand<String,InputStream>
com.orientechnologies.orient.server.network.protocol.http.command.post.OServerCommandPostImportDatabase
- All Implemented Interfaces:
OCommandOutputListener,OServerCommand
public class OServerCommandPostImportDatabase
extends OHttpMultipartRequestCommand<String,InputStream>
implements OCommandOutputListener
- Author:
- Luca Molino (molino.luca--at--gmail.com)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.orientechnologies.orient.server.network.protocol.http.multipart.OHttpMultipartRequestCommand
OHttpMultipartRequestCommand.STATUS -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringWriterprotected ODatabaseDocumentInternalprotected InputStreamprotected static final String[]Fields inherited from class com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract
DBNAME_DIR_SEPARATOR, SESSIONID_LOGOUT, SESSIONID_UNAUTHORIZEDFields inherited from class com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
server -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(OHttpRequest iRequest, OHttpResponse iResponse) Executes the command requested.protected Stringprotected StringString[]getNames()voidprotected voidprocessBaseContent(OHttpRequest iRequest, String iContentResult, HashMap<String, String> headers) protected voidprocessFileContent(OHttpRequest iRequest, InputStream iContentResult, HashMap<String, String> headers) Methods inherited from class com.orientechnologies.orient.server.network.protocol.http.multipart.OHttpMultipartRequestCommand
parse, parseBaseContent, parseFileContent, parseHeader, parsePartHeaders, readBoundary, readBoundaryCrLfMethods inherited from class com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract
afterExecute, authenticate, beforeExecute, getProfiledDatabaseInstance, getProfiledDatabaseInstanceBasic, getProfiledDatabaseInstanceToken, sendAuthorizationRequestMethods inherited from class com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAbstract
checkSyntax, configure, getServer, isJsonResponse, sendJsonError, setNoCache
-
Field Details
-
NAMES
-
buffer
-
importData
-
database
-
-
Constructor Details
-
OServerCommandPostImportDatabase
public OServerCommandPostImportDatabase()
-
-
Method Details
-
execute
Description copied from interface:OServerCommandExecutes the command requested.- Specified by:
executein interfaceOServerCommand- Returns:
- boolean value that indicates if this command is part of a chain
- Throws:
Exception
-
processBaseContent
protected void processBaseContent(OHttpRequest iRequest, String iContentResult, HashMap<String, String> headers) throws Exception- Specified by:
processBaseContentin classOHttpMultipartRequestCommand<String,InputStream> - Throws:
Exception
-
processFileContent
protected void processFileContent(OHttpRequest iRequest, InputStream iContentResult, HashMap<String, String> headers) throws Exception- Specified by:
processFileContentin classOHttpMultipartRequestCommand<String,InputStream> - Throws:
Exception
-
getDocumentParamenterName
- Specified by:
getDocumentParamenterNamein classOHttpMultipartRequestCommand<String,InputStream>
-
getFileParamenterName
- Specified by:
getFileParamenterNamein classOHttpMultipartRequestCommand<String,InputStream>
-
getNames
- Specified by:
getNamesin interfaceOServerCommand
-
onMessage
- Specified by:
onMessagein interfaceOCommandOutputListener
-