1 17 package javax.servlet; 18 19 import java.io.InputStream ; 20 import java.net.MalformedURLException ; 21 import java.net.URL ; 22 import java.util.Enumeration ; 23 import java.util.Set ; 24 25 26 55 56 public interface ServletContext { 57 58 59 83 84 public ServletContext getContext(String uripath); 85 86 87 public String getContextPath(); 88 89 90 99 100 public int getMajorVersion(); 101 102 103 104 113 114 public int getMinorVersion(); 115 116 117 118 132 133 public String getMimeType(String file); 134 135 162 163 public Set getResourcePaths(String path); 164 165 166 167 208 209 public URL getResource(String path) throws MalformedURLException ; 210 211 212 213 247 248 public InputStream getResourceAsStream(String path); 249 250 251 252 253 280 281 public RequestDispatcher getRequestDispatcher(String path); 282 283 284 285 311 312 public RequestDispatcher getNamedDispatcher(String name); 313 314 315 316 317 332 333 public Servlet getServlet(String name) throws ServletException ; 334 335 336 337 338 339 340 352 353 public Enumeration getServlets(); 354 355 356 357 358 359 360 371 372 public Enumeration getServletNames(); 373 374 375 376 377 378 389 390 public void log(String msg); 391 392 393 394 395 396 406 407 public void log(Exception exception, String msg); 408 409 410 411 412 413 427 428 public void log(String message, Throwable throwable); 429 430 431 432 433 434 458 459 public String getRealPath(String path); 460 461 462 463 464 482 483 public String getServerInfo(); 484 485 486 487 488 506 507 public String getInitParameter(String name); 508 509 510 511 512 524 525 public Enumeration getInitParameterNames(); 526 527 528 529 558 559 public Object getAttribute(String name); 560 561 562 563 564 577 578 public Enumeration getAttributeNames(); 579 580 581 582 583 609 610 public void setAttribute(String name, Object object); 611 612 613 614 615 616 631 632 public void removeAttribute(String name); 633 634 642 643 public String getServletContextName(); 644 } 645 646 647 | Popular Tags |