Examples of urlForResourceNamed()


Examples of ariba.ui.aribaweb.util.AWResourceManager.urlForResourceNamed()

        AWResource res = resourceManager.resourceNamed(name);

        if (!(res instanceof AWFileResource)) {
            boolean useFullUrl = requestContext.isMetaTemplateMode();
            boolean isSecure = useFullUrl ? requestContext.request() != null && requestContext.request().isSecureScheme() : false;
            return resourceManager.urlForResourceNamed(name, useFullUrl, isSecure, false);
        }

        String path = ((AWFileResource)res)._fullPath();
        Assert.that(path.endsWith(name), "Resource %s resolved to file path %s, which does not end with the requested resource!", name, path);
View Full Code Here

Examples of com.webobjects.appserver.WOResourceManager.urlForResourceNamed()

    String result = "#";
    if(!ERXStringUtilities.stringIsNullOrEmpty(fileName())) {
      WOResourceManager rm = WOApplication.application().resourceManager();
      try {
        result = rm.urlForResourceNamed(fileName(), framework(), null, aWOContext.request())
      }
      catch (Exception e) {
        log.warn("The Resource Path is not correct : " + this);
      }
    }
View Full Code Here

Examples of com.webobjects.appserver.WOResourceManager.urlForResourceNamed()

      }

      if(!ERXStringUtilities.stringIsNullOrEmpty(fileName)) {
        WOResourceManager rm = WOApplication.application().resourceManager();
        try {
          return rm.urlForResourceNamed(fileName, framework, null, context.request())
        }
        catch (Exception e) {
          log.warn("The Resource Path is not correct : " + url);
        }
      }
View Full Code Here

Examples of com.webobjects.appserver.WOResourceManager.urlForResourceNamed()

    }

 
  public String redSquareSrc() {
    WOResourceManager rm = application().resourceManager();
    return rm.urlForResourceNamed("img/Red_Thumb.png", "app", null, context().request());
  }
 
  public String yellowSquareSrc() {   
    WOResourceManager rm = application().resourceManager();
    return rm.urlForResourceNamed("img/Yellow_Thumb.png", "app", null, context().request());
View Full Code Here

Examples of com.webobjects.appserver.WOResourceManager.urlForResourceNamed()

    return rm.urlForResourceNamed("img/Red_Thumb.png", "app", null, context().request());
  }
 
  public String yellowSquareSrc() {   
    WOResourceManager rm = application().resourceManager();
    return rm.urlForResourceNamed("img/Yellow_Thumb.png", "app", null, context().request());
  }
 
  public String greenSquareSrc() {
    WOResourceManager rm = application().resourceManager();
    return rm.urlForResourceNamed("img/Green_Thumb.png", "app", null, context().request());
View Full Code Here

Examples of com.webobjects.appserver.WOResourceManager.urlForResourceNamed()

    return rm.urlForResourceNamed("img/Yellow_Thumb.png", "app", null, context().request());
  }
 
  public String greenSquareSrc() {
    WOResourceManager rm = application().resourceManager();
    return rm.urlForResourceNamed("img/Green_Thumb.png", "app", null, context().request());
  }
   
  public NSMutableArray<NSDictionary<String, Object>> listA() {
    return _listA;
  }
View Full Code Here

Examples of com.webobjects.appserver.WOResourceManager.urlForResourceNamed()

      href = ERAttachmentProcessor.processorForType(attachment).attachmentUrl(attachment, context.request(), context);
    } else {
      WOResourceManager rm = WOApplication.application().resourceManager();
      String fileName = (String)valueForBinding("filename", component);
      String frameWork = (String)valueForBinding("framework", component);
      href = rm.urlForResourceNamed(fileName, frameWork, null, context.request()).toString();
    }
   
    appendTagAttributeToResponse(response, "href", href);
    appendTagAttributeToResponse(response, "rel", valueForBinding("rel", component));
    appendTagAttributeToResponse(response, "title", valueForBinding("title", component));
View Full Code Here

Examples of com.webobjects.appserver.WOResourceManager.urlForResourceNamed()

    super(context);
  }

  public String src() {
    WOResourceManager rm = WOApplication.application().resourceManager();
    return rm.urlForResourceNamed("clippy.swf", "ERExtensions", null, context().request());
  }

  public String text() {
    return stringValueForBinding("text", "");
  }
View Full Code Here

Examples of com.webobjects.appserver.WOResourceManager.urlForResourceNamed()

          framework = val.toString();
        }
      }
      String filename = (String)_filename.valueInComponent(component);
      WOResourceManager rs = WOApplication.application().resourceManager();
      href = rs.urlForResourceNamed(filename, framework, null, context.request());
    }
    response._appendTagAttributeAndValue("href", href, false);
    String rel = "SHORTCUT ICON";
    if(_type != null) {
      String val = (String) _type.valueInComponent(component);
View Full Code Here

Examples of com.webobjects.appserver.WOResourceManager.urlForResourceNamed()

          WOResourceManager rm = WOApplication.application().resourceManager();
          NSArray languages = null;
          if (context.hasSession()) {
            languages = context.session().languages();
          }
          url = rm.urlForResourceNamed(fileName, framework, languages, context.request());
          boolean generateCompleteResourceURLs = ERXResourceManager._shouldGenerateCompleteResourceURL(context);
          boolean secureAllResources = ERXProperties.booleanForKey(ERXResponseRewriter.SECURE_RESOURCES_KEY) && !ERXRequest.isRequestSecure(context.request());
          if (generateCompleteResourceURLs || secureAllResources) {
            url = ERXResourceManager._completeURLForResource(url, secureAllResources ? Boolean.TRUE : null, context);
          }
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.