Package de.laures.cewolf

Examples of de.laures.cewolf.Storage


  public int doStartTag() throws JspException
  {
    final ChartHolder chartHolder = PageUtils.getChartHolder(chartId, pageContext);
    this.chartImageDefinition = new ChartImageDefinition(chartHolder, width, height, ChartImage.IMG_TYPE_CHART, mimeType, timeout);
    Storage storage = Configuration.getInstance(pageContext.getServletContext()).getStorage();
    try
    {
      this.sessionKey = storage.storeChartImage(chartImageDefinition, pageContext);
    }
    catch (CewolfException cwex)
    {
      throw new JspException(cwex.getMessage());
    }
View Full Code Here


          log.error("ChartImgTag.doEndTag: "+ioex.getMessage());
            throw new JspException(ioex.getMessage());
        }

    try {
      Storage storage = Configuration.getInstance(pageContext.getServletContext()).getStorage();
      storage.removeChartImage(sessionKey, (HttpServletRequest) pageContext.getRequest());
    } catch (CewolfException cwex) {
      throw new JspException(cwex.getMessage());
    }

      return doAfterEndTag(EVAL_PAGE);
View Full Code Here

    private String mimeType = DEFAULT_MIME_TYPE;

    public int doStartTag() throws JspException {
        ChartHolder cd = PageUtils.getChartHolder(getChartId(), pageContext);
        ChartImage cid = new ChartImageDefinition(cd, width, height, ChartImage.IMG_TYPE_LEGEND, mimeType, timeout);
        Storage storage = Configuration.getInstance(pageContext.getServletContext()).getStorage();
        try {
          this.sessionKey = storage.storeChartImage(cid, pageContext);
        } catch(CewolfException cwex){
          log.error("LegendTag.doStartTag: "+cwex.getMessage());
          throw new JspException(cwex.getMessage());
        }
        return SKIP_BODY;
View Full Code Here

    public static final Color UNWORKED_COLOR = new Color(0xC0, 0xC0, 0xC0);

    public int doStartTag() throws JspException {
        setRenderer("/cewolf");
        setChartid(getId());
        Storage storage = Configuration.getInstance(pageContext.getServletContext()).getStorage();
        try {
            this.sessionKey = storage.storeChartImage(getChartImage(), pageContext);
        } catch (CewolfException cwex) {
            throw new JspException(cwex.getMessage());
        }
        return SKIP_BODY;
    }
View Full Code Here

    private String mimeType = DEFAULT_MIME_TYPE;

    public int doStartTag() throws JspException {
        ChartHolder cd = PageUtils.getChartHolder(getChartId(), pageContext);
        ChartImage cid = new ChartImageDefinition(cd, width, height, ChartImage.IMG_TYPE_LEGEND, mimeType,timeout);
        Storage storage = Configuration.getInstance(pageContext.getServletContext()).getStorage();
        try {
          this.sessionKey = storage.storeChartImage(cid, pageContext);
        } catch(CewolfException cwex){
          log.error(cwex);
          throw new JspException(cwex.getMessage());
        }
        return SKIP_BODY;
View Full Code Here

  public int doStartTag() throws JspException
  {
    final ChartHolder chartHolder = PageUtils.getChartHolder(chartId, pageContext);
    this.chartImageDefinition = new ChartImageDefinition(chartHolder, width, height, ChartImage.IMG_TYPE_CHART, mimeType,timeout);
    Storage storage = Configuration.getInstance(pageContext.getServletContext()).getStorage();
    try
    {
      this.sessionKey = storage.storeChartImage(chartImageDefinition, pageContext);
    }
    catch (CewolfException cwex)
    {
      throw new JspException(cwex.getMessage());
    }
View Full Code Here

public class CewolfChartImgTag extends  CewolfHtmlImgTag implements CewolfRootTag, Mapped, TaglibConstants, WebConstants {
 
  public int doStartTag() throws JspException {
    final ChartHolder chartHolder = PageUtils.getChartHolder(chartId, pageContext);
    this.chartImageDefinition = new ChartImageDefinition(chartHolder, width, height, ChartImage.IMG_TYPE_CHART, mimeType,timeout);
    Storage storage = Configuration.getInstance(pageContext.getServletContext()).getStorage();
    try {
      this.sessionKey = storage.storeChartImage(chartImageDefinition, pageContext);
    } catch (CewolfException cwex) {
      throw new JspException(cwex.getMessage());
    }
    return EVAL_PAGE;
  }
View Full Code Here

TOP

Related Classes of de.laures.cewolf.Storage

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.