Examples of WODeployedBundle


Examples of com.webobjects.appserver._private.WODeployedBundle

  }

  private static WODeployedBundle _initAppBundle() {
    Object obj = null;
    try {
      WODeployedBundle wodeployedbundle = WODeployedBundle.deployedBundle();
      obj = wodeployedbundle.projectBundle();
      if (obj != null) {
        log.warn("Application project found: Will locate resources in '" + ((WOProjectBundle) obj).projectPath() + "' rather than '" + wodeployedbundle.bundlePath() + "' .");
      }
      else {
        obj = wodeployedbundle;
      }
    }
View Full Code Here

Examples of com.webobjects.appserver._private.WODeployedBundle

  }

  private String _cachedURLForResource(String name, String bundleName, NSArray<String> languages, WORequest request) {
    String result = null;
    if (bundleName != null) {
      WODeployedBundle wodeployedbundle = _cachedBundleForFrameworkNamed(bundleName);
      if (wodeployedbundle != null) {
        result = wodeployedbundle.urlForResource(name, languages);
      }
      if (result == null) {
        result = "/ERROR/NOT_FOUND/framework=" + bundleName + "/filename=" + (name == null ? "*null*" : name);
      }
    }
View Full Code Here

Examples of com.webobjects.appserver._private.WODeployedBundle

    return completeURL;
  }
 
  protected String _postprocessURL(String url, String bundleName) {
    if (WOApplication.application() instanceof ERXApplication) {
      WODeployedBundle bundle = _cachedBundleForFrameworkNamed(bundleName);
      return ERXApplication.erxApplication()._rewriteResourceURL(url, bundle);
    }
    return url;
  }
View Full Code Here

Examples of com.webobjects.appserver._private.WODeployedBundle

   */
  public ERXStaticResourceRequestHandler(String frameworkName) {
    if ("app".equals(frameworkName)) {
      frameworkName = null;
    }
    WODeployedBundle bundle = WOApplication.application().resourceManager()._cachedBundleForFrameworkNamed(frameworkName);
    File bundleFile = new File(bundle.bundlePath());
    if (bundle.isFramework()) {
      bundleFile = new File(bundleFile, "WebServerResources");
    }
    else {
      bundleFile = new File(new File(bundleFile, "Contents"), "WebServerResources");
    }
View Full Code Here

Examples of com.webobjects.appserver._private.WODeployedBundle

        errorMessage = request.stringFormValueForKey("errorMessage");
        fullClassName = request.stringFormValueForKey("fullClassName");
        WOResourceManager resources = WOApplication.application().resourceManager();

        // pay no attention to this use of protected API
        WODeployedBundle appBundle = resources._appProjectBundle();
        if (appBundle instanceof WOProjectBundle) {
            WOProjectBundle project = (WOProjectBundle) appBundle;
            _WOProject woproject = project._woProject();
            String filePath = woproject._pathToSourceFileForClass(fullClassName, filename);
            if (filePath == null) {
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.