1 2 3 27 28 29 package org.apache.catalina; 30 31 32 import java.security.Principal ; 33 import java.util.Locale ; 34 35 import javax.servlet.http.Cookie ; 36 37 import org.apache.tomcat.util.buf.MessageBytes; 38 39 47 48 public interface HttpRequest extends Request { 49 50 51 53 54 59 public void addCookie(Cookie cookie); 60 61 62 68 public void addHeader(String name, String value); 69 70 71 77 public void addLocale(Locale locale); 78 79 80 88 public void addParameter(String name, String values[]); 89 90 91 94 public void clearCookies(); 95 96 97 100 public void clearHeaders(); 101 102 103 106 public void clearLocales(); 107 108 109 112 public void clearParameters(); 113 114 115 122 public void setAuthType(String type); 123 124 125 130 public MessageBytes getContextPathMB(); 131 132 133 140 public void setContextPath(String path); 141 142 143 148 public void setMethod(String method); 149 150 151 157 public void setQueryString(String query); 158 159 160 165 public MessageBytes getPathInfoMB(); 166 167 168 175 public void setPathInfo(String path); 176 177 178 183 public MessageBytes getRequestPathMB(); 184 185 186 193 public void setRequestedSessionCookie(boolean flag); 194 195 196 202 public void setRequestedSessionId(String id); 203 204 205 212 public void setRequestedSessionURL(boolean flag); 213 214 215 221 public void setRequestURI(String uri); 222 223 224 229 public void setDecodedRequestURI(String uri); 230 231 232 237 public String getDecodedRequestURI(); 238 239 240 245 public MessageBytes getDecodedRequestURIMB(); 246 247 248 253 public MessageBytes getServletPathMB(); 254 255 256 263 public void setServletPath(String path); 264 265 266 273 public void setUserPrincipal(Principal principal); 274 275 276 } 277 | Popular Tags |