1 2 3 27 28 29 package org.apache.catalina; 30 31 import java.beans.PropertyChangeListener ; 32 import javax.naming.directory.DirContext ; 33 import org.apache.catalina.deploy.ApplicationParameter; 34 import org.apache.catalina.deploy.ContextEjb; 35 import org.apache.catalina.deploy.ContextEnvironment; 36 import org.apache.catalina.deploy.ContextResource; 37 import org.apache.catalina.deploy.ContextResourceLink; 38 import org.apache.catalina.deploy.NamingResources; 39 import org.apache.catalina.deploy.ResourceParams; 40 41 42 52 53 public interface DefaultContext { 54 55 56 58 59 62 public boolean getCookies(); 63 64 65 70 public void setCookies(boolean cookies); 71 72 73 76 public boolean getCrossContext(); 77 78 79 84 public void setCrossContext(boolean crossContext); 85 86 87 92 public String getInfo(); 93 94 95 98 public boolean getReloadable(); 99 100 101 106 public void setReloadable(boolean reloadable); 107 108 109 113 public String getWrapperClass(); 114 115 116 122 public void setWrapperClass(String wrapperClass); 123 124 125 131 public void setResources(DirContext resources); 132 133 134 140 public DirContext getResources(); 141 142 143 147 public Loader getLoader(); 148 149 150 155 public void setLoader(Loader loader); 156 157 158 162 public Manager getManager(); 163 164 165 170 public void setManager(Manager manager); 171 172 173 176 public NamingResources getNamingResources(); 177 178 179 181 182 185 public String getName(); 186 187 188 193 public void setName(String name); 194 195 196 200 public Container getParent(); 201 202 203 214 public void setParent(Container container); 215 216 217 219 220 226 public void addApplicationListener(String listener); 227 228 229 234 public void addApplicationParameter(ApplicationParameter parameter); 235 236 237 242 public void addEjb(ContextEjb ejb); 243 244 245 250 public void addEnvironment(ContextEnvironment environment); 251 252 253 258 public void addResourceParams(ResourceParams resourceParameters); 259 260 261 267 public void addInstanceListener(String listener); 268 269 270 281 public void addParameter(String name, String value); 282 283 284 289 public void addPropertyChangeListener(PropertyChangeListener listener); 290 291 292 297 public void addResource(ContextResource resource); 298 299 300 306 public void addResourceEnvRef(String name, String type); 307 308 309 314 public void addResourceLink(ContextResourceLink resourceLink); 315 316 317 323 public void addWrapperLifecycle(String listener); 324 325 326 332 public void addWrapperListener(String listener); 333 334 335 339 public String [] findApplicationListeners(); 340 341 342 345 public ApplicationParameter[] findApplicationParameters(); 346 347 348 354 public ContextEjb findEjb(String name); 355 356 357 361 public ContextEjb[] findEjbs(); 362 363 364 370 public ContextEnvironment findEnvironment(String name); 371 372 373 378 public ContextEnvironment[] findEnvironments(); 379 380 381 386 public ResourceParams[] findResourceParams(); 387 388 389 393 public String [] findInstanceListeners(); 394 395 396 402 public String findParameter(String name); 403 404 405 410 public String [] findParameters(); 411 412 413 419 public ContextResource findResource(String name); 420 421 422 428 public String findResourceEnvRef(String name); 429 430 431 436 public String [] findResourceEnvRefs(); 437 438 439 445 public ContextResourceLink findResourceLink(String name); 446 447 448 452 public ContextResourceLink[] findResourceLinks(); 453 454 455 459 public ContextResource[] findResources(); 460 461 462 466 public String [] findWrapperLifecycles(); 467 468 469 473 public String [] findWrapperListeners(); 474 475 476 482 public void removeApplicationListener(String listener); 483 484 485 491 public void removeApplicationParameter(String name); 492 493 494 499 public void removeEjb(String name); 500 501 502 507 public void removeEnvironment(String name); 508 509 510 516 public void removeInstanceListener(String listener); 517 518 519 525 public void removeParameter(String name); 526 527 528 533 public void removePropertyChangeListener(PropertyChangeListener listener); 534 535 536 541 public void removeResource(String name); 542 543 544 549 public void removeResourceEnvRef(String name); 550 551 552 557 public void removeResourceLink(String name); 558 559 560 566 public void removeWrapperLifecycle(String listener); 567 568 569 575 public void removeWrapperListener(String listener); 576 577 578 580 581 587 public void importDefaultContext(Context context); 588 589 590 } 591 | Popular Tags |