1 17 18 package javax.servlet.http; 19 20 import javax.servlet.ServletRequest ; 21 import java.util.Enumeration ; 22 23 38 39 public interface HttpServletRequest extends ServletRequest { 40 41 44 public static final String BASIC_AUTH = "BASIC"; 45 48 public static final String FORM_AUTH = "FORM"; 49 52 public static final String CLIENT_CERT_AUTH = "CLIENT_CERT"; 53 56 public static final String DIGEST_AUTH = "DIGEST"; 57 58 77 78 public String getAuthType(); 79 80 81 82 83 95 96 public Cookie [] getCookies(); 97 98 99 100 101 135 136 public long getDateHeader(String name); 137 138 139 140 141 161 162 public String getHeader(String name); 163 164 165 166 167 194 195 public Enumeration getHeaders(String name); 196 197 198 199 200 201 221 222 public Enumeration getHeaderNames(); 223 224 225 226 227 249 250 public int getIntHeader(String name); 251 252 253 254 255 267 268 public String getMethod(); 269 270 271 272 273 296 297 public String getPathInfo(); 298 299 300 301 302 323 324 public String getPathTranslated(); 325 326 327 328 329 344 345 public String getContextPath(); 346 347 348 349 350 363 364 public String getQueryString(); 365 366 367 368 369 383 384 public String getRemoteUser(); 385 386 387 388 389 405 406 public boolean isUserInRole(String role); 407 408 409 410 411 423 424 public java.security.Principal getUserPrincipal(); 425 426 427 428 429 445 446 public String getRequestedSessionId(); 447 448 449 450 451 479 480 public String getRequestURI(); 481 482 500 public StringBuffer getRequestURL(); 501 502 503 524 525 public String getServletPath(); 526 527 528 529 530 565 566 public HttpSession getSession(boolean create); 567 568 569 570 571 572 583 584 public HttpSession getSession(); 585 586 587 588 589 590 591 605 606 public boolean isRequestedSessionIdValid(); 607 608 609 610 611 623 624 public boolean isRequestedSessionIdFromCookie(); 625 626 627 628 629 642 643 public boolean isRequestedSessionIdFromURL(); 644 645 646 647 648 649 656 657 public boolean isRequestedSessionIdFromUrl(); 658 659 660 661 } 662 | Popular Tags |