1 20 package org.apache.cactus; 21 22 import java.io.InputStream ; 23 import java.util.Enumeration ; 24 import java.util.Vector ; 25 26 import org.apache.cactus.client.authentication.Authentication; 27 28 33 public interface WebRequest extends Request 34 { 35 38 String GET_METHOD = "GET"; 39 40 43 String POST_METHOD = "POST"; 44 45 50 void setContentType(String theContentType); 51 52 55 String getContentType(); 56 57 62 void setUserData(InputStream theDataStream); 63 64 67 InputStream getUserData(); 68 69 80 void addParameter(String theName, String theValue, String theMethod); 81 82 91 void addParameter(String theName, String theValue); 92 93 97 Enumeration getParameterNamesPost(); 98 99 102 Enumeration getParameterNamesGet(); 103 104 112 String getParameterGet(String theName); 113 114 123 String getParameterPost(String theName); 124 125 133 String [] getParameterValuesGet(String theName); 134 135 144 String [] getParameterValuesPost(String theName); 145 146 155 void addCookie(String theName, String theValue); 156 157 170 void addCookie(String theDomain, String theName, String theValue); 171 172 181 void addCookie(Cookie theCookie); 182 183 186 Vector getCookies(); 187 188 195 void addHeader(String theName, String theValue); 196 197 200 Enumeration getHeaderNames(); 201 202 209 String getHeader(String theName); 210 211 218 String [] getHeaderValues(String theName); 219 220 225 void setAuthentication(Authentication theAuthentication); 226 227 230 Authentication getAuthentication(); 231 232 240 void setRedirectorName(String theRedirectorName); 241 242 245 String getRedirectorName(); 246 247 251 void setAutomaticSession(boolean isAutomaticSession); 252 253 257 boolean getAutomaticSession(); 258 259 301 void setURL(String theServerName, String theContextPath, 302 String theServletPath, String thePathInfo, String theQueryString); 303 304 307 ServletURL getURL(); 308 309 316 HttpSessionCookie getSessionCookie(); 317 } 318 | Popular Tags |