1 9 10 package com.opensymphony.module.sitemesh; 11 12 import javax.servlet.http.HttpServletRequest ; 13 import java.io.IOException ; 14 import java.io.Writer ; 15 import java.util.Map ; 16 17 34 public interface Page { 35 42 void writePage(Writer out) throws IOException ; 43 44 50 String getPage(); 51 52 55 void writeBody(Writer out) throws IOException ; 56 57 63 String getBody(); 64 65 68 String getTitle(); 69 70 76 int getContentLength(); 77 78 84 String getProperty(String name); 85 86 93 int getIntProperty(String name); 94 95 102 long getLongProperty(String name); 103 104 112 boolean getBooleanProperty(String name); 113 114 120 boolean isPropertySet(String name); 121 122 127 String [] getPropertyKeys(); 128 129 134 Map getProperties(); 135 136 139 HttpServletRequest getRequest(); 140 141 145 void setRequest(HttpServletRequest request); 146 147 150 void addProperty(String name, String value); 151 } | Popular Tags |