Examples of AWResource


Examples of ariba.ui.aribaweb.util.AWResource

        }
    }

    protected AWResource javaSourceFileResource (Class cls)
    {
        AWResource resource = null;
        AWSingleLocaleResourceManager resourceManager =
            AWConcreteApplication.SharedInstance.resourceManager(Locale.US);
        String origComponentName = AWUtil.getClassLoader().getComponentNameForClass(cls.getName());
        String origClassName = origComponentName.replace('.','/');
        String sourceFileName = Fmt.S("%s.java",origClassName);
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource

        AWSession session = requestContext.session(false);
        if (session != null) {
            isImagedBranded = (Boolean)session.dict().get(key);
        }
        if (isImagedBranded == null) {
            AWResource resource = rm.resourceNamed(imageName, true);
            long crc = imageCRC(resource);
            isImagedBranded = Boolean.valueOf(crc != systemImageCRC);
            if (session != null) {
                session.dict().put(key, isImagedBranded);               
            }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource

    private static void setupSystemImagesCRC ()
    {
        if (ProductImageCRC == 0) {
            AWResourceManager rm = AWConcreteApplication.SharedInstance.resourceManager();
            AWResource resource = rm.resourceNamed("cmdbar_prod.gif");
            ProductImageCRC = imageCRC(resource);
            resource = rm.resourceNamed("cmdbar_banner.gif");
            BannerImageCRC = imageCRC(resource);
        }
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource

    public String htmlString ()
    {
        String htmlString = null;
        String filename = (String)valueForBinding(AWBindingNames.filename);
        if (filename != null) {
            AWResource resource = resourceManager().resourceNamed(filename);
            if (resource != null) {
                htmlString = (String)resource.object();
                if ((htmlString == null) || (AWConcreteApplication.IsRapidTurnaroundEnabled && resource.hasChanged())) {
                    InputStream inputStream = resource.inputStream();
                    inputStream = new BufferedInputStream(inputStream);
                    htmlString = AWUtil.stringWithContentsOfInputStream(inputStream,
                        booleanValueForBinding("expectEncoding"));
                    AWUtil.close(inputStream);
                    if (htmlString == null) {
                        htmlString = "";
                    }
                    else {
                        // See AWGenericElement._TranslatedBindings
                        htmlString = EventPattern.matcher(htmlString).replaceAll("x$1");
                    }
                    resource.setObject(htmlString);
                }
            }
        }
        return htmlString;
    }
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.