1 23 24 package org.infoglue.deliver.taglib.page; 25 26 import javax.servlet.jsp.JspException ; 27 28 import org.infoglue.deliver.taglib.TemplateControllerTag; 29 30 33 34 public class DeliveryContextTag extends TemplateControllerTag 35 { 36 private static final long serialVersionUID = 3905242346756059449L; 37 38 public DeliveryContextTag() 39 { 40 super(); 41 } 42 43 public int doEndTag() throws JspException 44 { 45 setResultAttribute(getController().getDeliveryContext()); 46 return EVAL_PAGE; 47 } 48 49 public void setUseFullUrl(boolean useFullUrl) throws JspException 50 { 51 getController().getDeliveryContext().setUseFullUrl(useFullUrl); 52 } 53 54 public void setDisablePageCache(boolean disablePageCache) throws JspException 55 { 56 getController().getDeliveryContext().setDisablePageCache(disablePageCache); 57 } 58 59 public void setDisableNiceUri(boolean disableNiceUri) throws JspException 60 { 61 getController().getDeliveryContext().setDisableNiceUri(disableNiceUri); 62 } 63 64 public void setTrimResponse(boolean trimResponse) throws JspException 65 { 66 getController().getDeliveryContext().setTrimResponse(trimResponse); 67 } 68 69 public void setEvaluateFullPage(boolean evaluateFullPage) throws JspException 70 { 71 getController().getDeliveryContext().setEvaluateFullPage(evaluateFullPage); 72 } 73 } 74 | Popular Tags |