1 58 package org.apache.ecs.jsp; 59 60 65 66 public class jsp_page extends jsp_element 67 { 68 69 73 public jsp_page() 74 { 75 super("jsp:page"); 76 } 77 78 90 public jsp_page(String language, String session, String buffer, String autoFlush, 91 String isThreadSafe, String isErrorPage, String contentType, String charset) 92 { 93 this(); 94 setLanguage(language); 95 setSession(session); 96 setBuffer(buffer); 97 setAutoFlush(autoFlush); 98 setIsThreadSafe(isThreadSafe); 99 setIsErrorPage(isErrorPage); 100 setContentType(contentType); 101 setCharset(charset); 102 } 103 104 108 public jsp_page setLanguage(String language) 109 { 110 addAttribute("language", language); 111 return this; 112 } 113 114 118 public jsp_page setSession(String session) 119 { 120 addAttribute("session", session); 121 return this; 122 } 123 124 128 public jsp_page setBuffer(String buffer) 129 { 130 addAttribute("buffer", buffer); 131 return this; 132 } 133 134 138 public jsp_page setAutoFlush(String autoFlush) 139 { 140 addAttribute("autoFlush", autoFlush); 141 return this; 142 } 143 144 148 public jsp_page setIsThreadSafe(String isThreadSafe) 149 { 150 addAttribute("isThreadSafe", isThreadSafe); 151 return this; 152 } 153 154 158 public jsp_page setIsErrorPage(String isErrorPage) 159 { 160 addAttribute("isErrorPage", isErrorPage); 161 return this; 162 } 163 164 168 public jsp_page setContentType(String contentType) 169 { 170 addAttribute("contentType", contentType); 171 return this; 172 } 173 174 178 public jsp_page setCharset(String charset) 179 { 180 addAttribute("charset", charset); 181 return this; 182 } 183 184 } 185 | Popular Tags |