Package ariba.ui.aribaweb.util

Examples of ariba.ui.aribaweb.util.AWFileResource


        }
        else {
            if (Log.aribawebResource_brand.isDebugEnabled()) {
                String location = resource.url();
                if (resource instanceof AWFileResource) {
                    AWFileResource file = (AWFileResource)resource;
                    location = file._fullPath();
                }
                Log.aribawebResource_brand.debug("Found: %s", location);
            }

            String lastModified = fmt.format(new Date(resource.lastModified()));
            response.setHeaderForKey(lastModified, "Last-Modified");

            // we are not specifying any cache-control header
      // since we are letting the web server config control this

            if (resource instanceof AWFileResource) {
                AWFileResource file = (AWFileResource)resource;
                response.setContentFromFile(file._fullPath());
            }
            else {
                ((AWBaseResponse)response).setContentFromStream(resource.inputStream());
            }
        }
View Full Code Here


    }

    public String selectedObjectFileLocation ()
    {
        String fileLocation = null;
        AWFileResource resource =
            (AWFileResource)application().resourceManager().resourceNamed(_selectedComponentDefinition.templateName());

        if (resource != null) {
            fileLocation = resource._fullPath();
        }

        return fileLocation;
    }
View Full Code Here

    }

    public String selectedObjectFileLocation ()
    {
        String fileLocation = null;
        AWFileResource resource =
            (AWFileResource)application().resourceManager().resourceNamed(selectedComponentDefinition().templateName());

        if (resource != null) {
            fileLocation = resource._fullPath();
        }

        return fileLocation;
    }
View Full Code Here

TOP

Related Classes of ariba.ui.aribaweb.util.AWFileResource

Copyright © 2018 www.massapicom. 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.