Examples of OServerCommandGetStaticContent


Examples of com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetStaticContent

    registerCommand(new OServerCommandGetDatabase());
    registerCommand(new OServerCommandGetDictionary());
    registerCommand(new OServerCommandGetDocument());
    registerCommand(new OServerCommandGetQuery());
    registerCommand(new OServerCommandGetServer());
    registerCommand(new OServerCommandGetStaticContent());
    registerCommand(new OServerCommandGetStorageAllocation());
    registerCommand(new OServerCommandGetFileDownload());

    registerCommand(new OServerCommandPostClass());
    registerCommand(new OServerCommandPostCommand());
View Full Code Here

Examples of com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetStaticContent

    Object pluginWWW = iPluginData.getParameter("www");
    if (pluginWWW == null)
      pluginWWW = iPluginData.getName();

    final OServerNetworkListener httpListener = server.getListenerByProtocol(ONetworkProtocolHttpAbstract.class);
    final OServerCommandGetStaticContent command = (OServerCommandGetStaticContent) httpListener
        .getCommand(OServerCommandGetStaticContent.class);

    if (command != null) {
      final URL wwwURL = iPluginData.getClassLoader().findResource("www/");

      final OCallable<Object, String> callback;
      if (wwwURL != null)
        callback = createStaticLinkCallback(iPluginData, wwwURL);
      else
        // LET TO THE COMMAND TO CONTROL IT
        callback = new OCallable<Object, String>() {
          @Override
          public Object call(final String iArgument) {
            return iPluginData.getInstance().getContent(iArgument);
          }
        };

      command.registerVirtualFolder(pluginWWW.toString(), callback);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.