1 17 18 19 package org.apache.catalina; 20 21 22 import java.beans.PropertyChangeListener ; 23 import java.io.IOException ; 24 import javax.servlet.ServletException ; 25 import javax.naming.directory.DirContext ; 26 27 import org.apache.catalina.connector.Request; 28 import org.apache.catalina.connector.Response; 29 import org.apache.commons.logging.Log; 30 31 32 83 84 public interface Container { 85 86 87 89 90 94 public static final String ADD_CHILD_EVENT = "addChild"; 95 96 97 101 public static final String ADD_MAPPER_EVENT = "addMapper"; 102 103 104 108 public static final String ADD_VALVE_EVENT = "addValve"; 109 110 111 115 public static final String REMOVE_CHILD_EVENT = "removeChild"; 116 117 118 122 public static final String REMOVE_MAPPER_EVENT = "removeMapper"; 123 124 125 129 public static final String REMOVE_VALVE_EVENT = "removeValve"; 130 131 132 134 135 140 public String getInfo(); 141 142 143 148 public Loader getLoader(); 149 150 151 156 public void setLoader(Loader loader); 157 158 159 164 public Log getLogger(); 165 166 167 172 public Manager getManager(); 173 174 175 180 public void setManager(Manager manager); 181 182 183 186 public Object getMappingObject(); 187 188 189 192 public String getObjectName(); 193 194 198 public Pipeline getPipeline(); 199 200 201 206 public Cluster getCluster(); 207 208 209 214 public void setCluster(Cluster cluster); 215 216 217 226 public int getBackgroundProcessorDelay(); 227 228 229 236 public void setBackgroundProcessorDelay(int delay); 237 238 239 244 public String getName(); 245 246 247 258 public void setName(String name); 259 260 261 265 public Container getParent(); 266 267 268 279 public void setParent(Container container); 280 281 282 285 public ClassLoader getParentClassLoader(); 286 287 288 296 public void setParentClassLoader(ClassLoader parent); 297 298 299 304 public Realm getRealm(); 305 306 307 312 public void setRealm(Realm realm); 313 314 315 320 public DirContext getResources(); 321 322 323 328 public void setResources(DirContext resources); 329 330 331 333 334 339 public void backgroundProcess(); 340 341 342 359 public void addChild(Container child); 360 361 362 367 public void addContainerListener(ContainerListener listener); 368 369 370 375 public void addPropertyChangeListener(PropertyChangeListener listener); 376 377 378 384 public Container findChild(String name); 385 386 387 391 public Container[] findChildren(); 392 393 394 399 public ContainerListener[] findContainerListeners(); 400 401 402 414 public void invoke(Request request, Response response) 415 throws IOException , ServletException ; 416 417 418 424 public void removeChild(Container child); 425 426 427 432 public void removeContainerListener(ContainerListener listener); 433 434 435 440 public void removePropertyChangeListener(PropertyChangeListener listener); 441 442 443 } 444 | Popular Tags |