Package com.adito.extensions

Examples of com.adito.extensions.ExtensionDescriptor.containsFile()


    ExtensionDescriptor app = ExtensionStore.getInstance().getExtensionDescriptor(application);

    if (app == null)
      app = ExtensionStore.getInstance().getAgentApplication();

    if (!app.containsFile(file)) {
      log.error("Agent requested a file that does not exist (" + file + ").");
      sendError(file + " not found", response);
    } else {
      sendFile(app.getFile(file), response);
    }
View Full Code Here


      }

      launchSession.checkAccessRights(null, agent.getSession());

      ExtensionDescriptor descriptor = ExtensionStore.getInstance().getExtensionDescriptor(name);
      if (!descriptor.containsFile(filename))
        throw new ChannelOpenException(ChannelOpenException.CHANNEL_REFUSED, "Application does not contain file " + filename + " in extension " + name);

      this.file = descriptor.getFile(filename);
      this.in = new FileInputStream(file);
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.