Package org.apache.turbine.util

Examples of org.apache.turbine.util.ContentURI


                                                   data.getResponse());
        newWC.put( "data", data );
        newWC.put( "link", new TemplateLink(data) );
        newWC.put( "page", new TemplatePageAttributes(data) );
        newWC.put( "formatter", new WebMacroFormatter(newWC) );
        newWC.put( "content", new ContentURI(data) );
        return newWC;
    }
View Full Code Here


     * method would probably be enough, but I'm not
     * absolutely positive.
     */
    public String image(String imageId, RunData data)
    {
        ContentURI cu = new ContentURI(data);
        StringBuffer sb = new StringBuffer();
       
        sb.append(resourcesDirectory).
           append(SKINS_DIRECTORY).
           append("/").
           append(getSkin()).
           append(IMAGES_DIRECTORY).
           append("/").
           append(imageId);
       
        return cu.getURI(sb.toString());
    }
View Full Code Here

     * method would probably be enough, but I'm not
     * absolutely positive.
     */
    public String getStylecss(RunData data)
    {
      ContentURI cu = new ContentURI(data);
        StringBuffer sb = new StringBuffer();
       
        sb.append(resourcesDirectory).
           append(SKINS_DIRECTORY).
           append("/").
           append(getSkin()).
           append("/").
           append(SKIN_CSS_FILE);

        return cu.getURI(sb.toString());
    }
View Full Code Here

    public int doStartTag() throws JspException
    {
        RunData data = (RunData)pageContext.getAttribute(JspService.RUNDATA, PageContext.REQUEST_SCOPE);   
       
        String result = new ContentURI(data).getURI(this.href);

        try
        {
            if (result != null) {
                pageContext.getOut().print(result);
View Full Code Here

                                                   data.getResponse());
        newWC.put( "data", data );
        newWC.put( "link", new TemplateLink(data) );
        newWC.put( "page", new TemplatePageAttributes(data) );
        newWC.put( "formatter", new WebMacroFormatter(newWC) );
        newWC.put( "content", new ContentURI(data) );
        return newWC;
    }
View Full Code Here

     * method would probably be enough, but I'm not
     * absolutely positive.
     */
    public String image(String imageId, RunData data)
    {
        ContentURI cu = new ContentURI(data);
        StringBuffer sb = new StringBuffer();

        sb.append(resourcesDirectory).
           append(SKINS_DIRECTORY).
           append("/").
           append(getSkin()).
           append(IMAGES_DIRECTORY).
           append("/").
           append(imageId);

        return cu.getURI(sb.toString());
    }
View Full Code Here

     * method would probably be enough, but I'm not
     * absolutely positive.
     */
    public String getStylecss(RunData data)
    {
        ContentURI cu = new ContentURI(data);
        StringBuffer sb = new StringBuffer();

        sb.append(resourcesDirectory).
           append(SKINS_DIRECTORY).
           append("/").
           append(getSkin()).
           append("/").
           append(SKIN_CSS_FILE);

        return cu.getURI(sb.toString());
    }
View Full Code Here

TOP

Related Classes of org.apache.turbine.util.ContentURI

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.