1 package org.apache.turbine; 2 3 56 57 import java.io.IOException ; 58 import java.io.PrintWriter ; 59 import java.util.Hashtable ; 60 import java.util.Locale ; 61 62 import javax.servlet.ServletConfig ; 63 import javax.servlet.ServletContext ; 64 import javax.servlet.http.HttpServletRequest ; 65 import javax.servlet.http.HttpServletResponse ; 66 import javax.servlet.http.HttpSession ; 67 68 import org.apache.fulcrum.parser.CookieParser; 69 import org.apache.fulcrum.parser.ParameterParser; 70 import org.apache.fulcrum.security.entity.User; 71 import org.apache.fulcrum.security.util.AccessControlList; 72 73 86 public interface RunData 87 { 88 93 public ParameterParser getParameters(); 94 95 100 public CookieParser getCookies(); 101 102 107 public HttpServletRequest getRequest(); 108 109 114 public HttpServletResponse getResponse(); 115 116 121 public HttpSession getSession(); 122 123 128 public ServletConfig getServletConfig(); 129 130 135 public ServletContext getServletContext(); 136 137 142 public AccessControlList getACL(); 143 144 149 public void setACL(AccessControlList acl); 150 151 156 public boolean hasAction(); 157 158 165 public String getAction(); 166 167 172 public void setAction(String action); 173 174 public String getTarget(); 175 public void setTarget(String template); 176 public boolean hasTarget(); 177 178 public void setTemp(String key, Object value); 179 public Object getTemp(String key); 180 181 186 public String getTemplateEncoding(); 187 188 193 public void setTemplateEncoding(String encoding); 194 195 200 public String getTitle(); 201 202 207 public void setTitle(String title); 208 209 214 public boolean userExists(); 215 216 221 public User getUser(); 222 223 228 public void setUser(User user); 229 230 236 public User getUserFromSession(); 237 238 243 public boolean removeUserFromSession(); 244 245 251 public AccessControlList getACLFromSession(); 252 253 258 public boolean removeACLFromSession(); 259 260 267 public PrintWriter getOut() 268 throws IOException ; 269 270 279 public Locale getLocale(); 280 281 286 public void setLocale(Locale locale); 287 288 297 public String getCharSet(); 298 299 304 public void setCharSet(String charset); 305 306 317 public String getContentType(); 318 319 324 public void setContentType(String ct); 325 326 332 public String getRedirectURI(); 333 334 340 public void setRedirectURI(String ruri); 341 342 347 public int getStatusCode(); 348 349 354 public void setStatusCode(int sc); 355 356 361 public String getServerScheme(); 362 363 368 public String getServerName(); 369 370 375 public int getServerPort(); 376 377 382 public String getContextPath(); 383 384 389 public String getScriptName(); 390 391 396 public String getRemoteAddr(); 397 398 403 public String getRemoteHost(); 404 405 410 public String getUserAgent(); 411 412 416 public void populate(); 417 418 421 public void save(); 422 423 428 public String getStackTrace(); 429 430 435 public Throwable getStackTraceException(); 436 437 443 public void setStackTrace(String trace, 444 Throwable exp); 445 446 451 public Hashtable getVarDebug(); 452 453 public void setParameterParser(ParameterParser p); 455 456 public void setMessage(String message); 457 public String getMessage(); 458 459 public void setServerName(String serverName); 460 public void setServerScheme(String serverScheme); 461 public void setServerPort(int serverPort); 462 public void setScriptName(String scriptName); 463 public void setContextPath(String contextPath); 464 public void setRequest(HttpServletRequest req); 465 public void setResponse(HttpServletResponse res); 466 } 467 | Popular Tags |