1 26 package org.ofbiz.webapp.region; 27 28 import javax.servlet.ServletException ; 29 import javax.servlet.http.HttpServletRequest ; 30 import javax.servlet.http.HttpServletResponse ; 31 import javax.servlet.jsp.JspException ; 32 import javax.servlet.jsp.PageContext ; 33 34 43 public abstract class Content implements java.io.Serializable { 44 protected final String content; 45 46 53 protected final String type; 54 55 abstract void render(PageContext pc) throws JspException ; 57 58 abstract void render(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException , ServletException ; 59 60 public Content(String content, String type) { 61 this.content = content; 62 this.type = type; 63 } 64 65 public String getContent() { 66 return content; 67 } 68 69 public String getType() { 70 return type; 71 } 72 73 public String toString() { 74 return "Content: " + content + ", type: " + type; 75 } 76 } 77 | Popular Tags |