1 17 18 19 package org.apache.catalina; 20 21 22 import javax.servlet.ServletContext ; 23 24 import org.apache.tomcat.util.http.mapper.Mapper; 25 26 import org.apache.catalina.deploy.ApplicationParameter; 27 import org.apache.catalina.deploy.ErrorPage; 28 import org.apache.catalina.deploy.FilterDef; 29 import org.apache.catalina.deploy.FilterMap; 30 import org.apache.catalina.deploy.LoginConfig; 31 import org.apache.catalina.deploy.NamingResources; 32 import org.apache.catalina.deploy.SecurityConstraint; 33 import org.apache.catalina.util.CharsetMapper; 34 35 36 55 56 public interface Context extends Container { 57 58 59 61 62 65 public static final String RELOAD_EVENT = "reload"; 66 67 68 70 71 79 public Object [] getApplicationEventListeners(); 80 81 82 89 public void setApplicationEventListeners(Object listeners[]); 90 91 92 100 public Object [] getApplicationLifecycleListeners(); 101 102 103 110 public void setApplicationLifecycleListeners(Object listeners[]); 111 112 113 116 public boolean getAvailable(); 117 118 119 124 public void setAvailable(boolean available); 125 126 127 130 public CharsetMapper getCharsetMapper(); 131 132 133 138 public void setCharsetMapper(CharsetMapper mapper); 139 140 141 144 public String getConfigFile(); 145 146 147 152 public void setConfigFile(String configFile); 153 154 155 158 public boolean getConfigured(); 159 160 161 168 public void setConfigured(boolean configured); 169 170 171 174 public boolean getCookies(); 175 176 177 182 public void setCookies(boolean cookies); 183 184 185 188 public boolean getCrossContext(); 189 190 191 192 195 public String getAltDDName(); 196 197 198 201 public void setAltDDName(String altDDName) ; 202 203 204 209 public void setCrossContext(boolean crossContext); 210 211 212 215 public String getDisplayName(); 216 217 218 223 public void setDisplayName(String displayName); 224 225 226 229 public boolean getDistributable(); 230 231 232 237 public void setDistributable(boolean distributable); 238 239 240 244 public String getDocBase(); 245 246 247 253 public void setDocBase(String docBase); 254 255 256 259 public String getEncodedPath(); 260 261 262 265 public boolean getIgnoreAnnotations(); 266 267 268 274 public void setIgnoreAnnotations(boolean ignoreAnnotations); 275 276 277 280 public LoginConfig getLoginConfig(); 281 282 283 288 public void setLoginConfig(LoginConfig config); 289 290 291 294 public Mapper getMapper(); 295 296 297 300 public NamingResources getNamingResources(); 301 302 303 308 public void setNamingResources(NamingResources namingResources); 309 310 311 314 public String getPath(); 315 316 317 322 public void setPath(String path); 323 324 325 329 public String getPublicId(); 330 331 332 338 public void setPublicId(String publicId); 339 340 341 344 public boolean getReloadable(); 345 346 347 352 public void setReloadable(boolean reloadable); 353 354 355 358 public boolean getOverride(); 359 360 361 366 public void setOverride(boolean override); 367 368 369 372 public boolean getPrivileged(); 373 374 375 380 public void setPrivileged(boolean privileged); 381 382 383 386 public ServletContext getServletContext(); 387 388 389 393 public int getSessionTimeout(); 394 395 396 402 public void setSessionTimeout(int timeout); 403 404 405 408 public boolean getSwallowOutput(); 409 410 411 418 public void setSwallowOutput(boolean swallowOutput); 419 420 421 425 public String getWrapperClass(); 426 427 428 434 public void setWrapperClass(String wrapperClass); 435 436 437 439 440 446 public void addApplicationListener(String listener); 447 448 449 454 public void addApplicationParameter(ApplicationParameter parameter); 455 456 457 460 public void addConstraint(SecurityConstraint constraint); 461 462 463 468 public void addErrorPage(ErrorPage errorPage); 469 470 471 476 public void addFilterDef(FilterDef filterDef); 477 478 479 484 public void addFilterMap(FilterMap filterMap); 485 486 487 493 public void addInstanceListener(String listener); 494 495 496 505 public void addJspMapping(String pattern); 506 507 508 514 public void addLocaleEncodingMappingParameter(String locale, String encoding); 515 516 517 524 public void addMimeMapping(String extension, String mimeType); 525 526 527 534 public void addParameter(String name, String value); 535 536 537 543 public void addRoleMapping(String role, String link); 544 545 546 551 public void addSecurityRole(String role); 552 553 554 561 public void addServletMapping(String pattern, String name); 562 563 564 570 public void addTaglib(String uri, String location); 571 572 573 579 public void addWatchedResource(String name); 580 581 582 587 public void addWelcomeFile(String name); 588 589 590 596 public void addWrapperLifecycle(String listener); 597 598 599 605 public void addWrapperListener(String listener); 606 607 608 614 public Wrapper createWrapper(); 615 616 617 621 public String [] findApplicationListeners(); 622 623 624 627 public ApplicationParameter[] findApplicationParameters(); 628 629 630 634 public SecurityConstraint[] findConstraints(); 635 636 637 643 public ErrorPage findErrorPage(int errorCode); 644 645 646 652 public ErrorPage findErrorPage(String exceptionType); 653 654 655 656 660 public ErrorPage[] findErrorPages(); 661 662 663 669 public FilterDef findFilterDef(String filterName); 670 671 672 675 public FilterDef[] findFilterDefs(); 676 677 678 681 public FilterMap[] findFilterMaps(); 682 683 684 688 public String [] findInstanceListeners(); 689 690 691 697 public String findMimeMapping(String extension); 698 699 700 704 public String [] findMimeMappings(); 705 706 707 713 public String findParameter(String name); 714 715 716 721 public String [] findParameters(); 722 723 724 731 public String findRoleMapping(String role); 732 733 734 740 public boolean findSecurityRole(String role); 741 742 743 747 public String [] findSecurityRoles(); 748 749 750 756 public String findServletMapping(String pattern); 757 758 759 763 public String [] findServletMappings(); 764 765 766 772 public String findStatusPage(int status); 773 774 775 780 public int[] findStatusPages(); 781 782 783 789 public String findTaglib(String uri); 790 791 792 797 public String [] findTaglibs(); 798 799 800 804 public String [] findWatchedResources(); 805 806 807 813 public boolean findWelcomeFile(String name); 814 815 816 820 public String [] findWelcomeFiles(); 821 822 823 827 public String [] findWrapperLifecycles(); 828 829 830 834 public String [] findWrapperListeners(); 835 836 837 843 public void reload(); 844 845 846 852 public void removeApplicationListener(String listener); 853 854 855 861 public void removeApplicationParameter(String name); 862 863 864 869 public void removeConstraint(SecurityConstraint constraint); 870 871 872 878 public void removeErrorPage(ErrorPage errorPage); 879 880 881 887 public void removeFilterDef(FilterDef filterDef); 888 889 890 895 public void removeFilterMap(FilterMap filterMap); 896 897 898 904 public void removeInstanceListener(String listener); 905 906 907 913 public void removeMimeMapping(String extension); 914 915 916 922 public void removeParameter(String name); 923 924 925 930 public void removeRoleMapping(String role); 931 932 933 938 public void removeSecurityRole(String role); 939 940 941 947 public void removeServletMapping(String pattern); 948 949 950 955 public void removeTaglib(String uri); 956 957 958 964 public void removeWatchedResource(String name); 965 966 967 973 public void removeWelcomeFile(String name); 974 975 976 982 public void removeWrapperLifecycle(String listener); 983 984 985 991 public void removeWrapperListener(String listener); 992 993 994 999 public boolean getXmlNamespaceAware(); 1000 1001 1002 1007 public boolean getXmlValidation(); 1008 1009 1010 1015 public void setXmlValidation(boolean xmlValidation); 1016 1017 1018 1023 public void setXmlNamespaceAware(boolean xmlNamespaceAware); 1024 1028 1029 1030 1035 public void setTldValidation(boolean tldValidation); 1036 1037 1038 1043 public boolean getTldValidation(); 1044 1045 1046 1050 public boolean getTldNamespaceAware(); 1051 1052 1053 1058 public void setTldNamespaceAware(boolean tldNamespaceAware); 1059 1060 1061} 1062 1063 | Popular Tags |