public class OServerCommandGetStaticContent extends OServerCommandConfigurableAbstract
Modifier and Type | Class and Description |
---|---|
static class |
OServerCommandGetStaticContent.OStaticContent |
server
Constructor and Description |
---|
OServerCommandGetStaticContent() |
OServerCommandGetStaticContent(OServerCommandConfiguration iConfiguration) |
Modifier and Type | Method and Description |
---|---|
boolean |
beforeExecute(OHttpRequest iRequest,
OHttpResponse iResponse)
Called before to execute.
|
boolean |
execute(OHttpRequest iRequest,
OHttpResponse iResponse)
Executes the command requested.
|
static String |
getContentType(String path) |
protected String |
getResource(OHttpRequest iRequest) |
protected OServerCommandGetStaticContent.OStaticContent |
getVirtualFolderContent(OHttpRequest iRequest) |
void |
registerVirtualFolder(String iName,
OCallable<Object,String> iCallback) |
void |
unregisterVirtualFolder(String iName) |
getNames
afterExecute, checkSyntax, configure, getServer, isJsonResponse, sendJsonError, setNoCache
public OServerCommandGetStaticContent()
public OServerCommandGetStaticContent(OServerCommandConfiguration iConfiguration)
public boolean beforeExecute(OHttpRequest iRequest, OHttpResponse iResponse) throws IOException
OServerCommand
beforeExecute
in interface OServerCommand
beforeExecute
in class OServerCommandAbstract
iResponse
- TODOIOException
public boolean execute(OHttpRequest iRequest, OHttpResponse iResponse) throws Exception
OServerCommand
Exception
public void registerVirtualFolder(String iName, OCallable<Object,String> iCallback)
public void unregisterVirtualFolder(String iName)
protected String getResource(OHttpRequest iRequest)
protected OServerCommandGetStaticContent.OStaticContent getVirtualFolderContent(OHttpRequest iRequest)
Copyright © 2009–2020 OrientDB. All rights reserved.