Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » tomcat » core » [javadoc | source]
org.apache.tomcat.core
public class: Context [javadoc | source]
java.lang.Object
   org.apache.tomcat.core.Context
Field Summary
 LogChannel logChannel     
Constructor:
 public Context() 
 public Context(Server server,
    String path) 
Method from org.apache.tomcat.core.Context Summary:
addDestroyInterceptor,   addInitInterceptor,   addServiceInterceptor,   copyContext,   getAttribute,   getAttributeNames,   getClassLoader,   getClassPath,   getContainer,   getDescription,   getDestroyInterceptors,   getDocumentBase,   getEngineHeader,   getErrorPage,   getErrorPage,   getFacade,   getInitInterceptors,   getInitParameter,   getInitParameterNames,   getLogChannel,   getMimeMap,   getPath,   getRequestSecurityProvider,   getServiceInterceptors,   getSessionTimeOut,   getWARDir,   getWelcomeFiles,   getWorkDir,   handleRequest,   init,   isDistributable,   isInvokerEnabled,   isWARExpanded,   isWARValidated,   isWorkDirPersistent,   removeAttribute,   removeDestroyInterceptor,   removeInitInterceptor,   removeServiceInterceptor,   setAttribute,   setClassLoader,   setClassPath,   setDescription,   setDistributable,   setDocumentBase,   setInvokerEnabled,   setIsWARExpanded,   setIsWARValidated,   setLogChannel,   setPath,   setRequestSecurityProvider,   setSessionTimeOut,   setWorkDir,   setWorkDir,   setupLoadableServlet,   shutdown
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tomcat.core.Context Detail:
 public  void addDestroyInterceptor(LifecycleInterceptor interceptor) 
    Adds an interceptor for destroy() method. If Interceptors a, b and c are added to a context, the implementation would guarantee the following call order: (no matter what happens, for eg.Exceptions ??)


    a.preInvoke(...)
    b.preInvoke(...)
    c.preInvoke(...)
    destroy()
    c.postInvoke(...)
    b.postInvoke(...)
    a.postInvoke(...)

 public  void addInitInterceptor(LifecycleInterceptor interceptor) 
    Adds an interceptor for init() method. If Interceptors a, b and c are added to a context, the implementation would guarantee the following call order: (no matter what happens, for eg.Exceptions ??)


    a.preInvoke(...)
    b.preInvoke(...)
    c.preInvoke(...)
    init()
    c.postInvoke(...)
    b.postInvoke(...)
    a.postInvoke(...)

 public  void addServiceInterceptor(ServiceInterceptor interceptor) 
    Adds an interceptor for service() method. If Interceptors a, b and c are added to a context, the implementation would guarantee the following call order: (no matter what happens, for eg.Exceptions ??)


    a.preInvoke(...)
    b.preInvoke(...)
    c.preInvoke(...)
    service()
    c.postInvoke(...)
    b.postInvoke(...)
    a.postInvoke(...)

 public  void copyContext(Context context) 
    Copy the internals of a context. Enhydra 3.0 will create shadow contexts used by any extra channels that point to the same app. These extra contexts will share many of the internals of the base context.
 public Object getAttribute(String name) 
 public Enumeration getAttributeNames() 
 public ClassLoader getClassLoader() 
 public String getClassPath() 
 public Container getContainer() 
 public String getDescription() 
 Vector getDestroyInterceptors() 
 public URL getDocumentBase() 
 public String getEngineHeader() 
 public String getErrorPage(int errorCode) 
 public String getErrorPage(String errorCode) 
 ServletContextFacade getFacade() 
 Vector getInitInterceptors() 
 public String getInitParameter(String name) 
 public Enumeration getInitParameterNames() 
 public LogChannel getLogChannel() 
 public MimeMap getMimeMap() 
 public String getPath() 
 public RequestSecurityProvider getRequestSecurityProvider() 
 Vector getServiceInterceptors() 
 public int getSessionTimeOut() 
 File getWARDir() 
 public Enumeration getWelcomeFiles() 
 public File getWorkDir() 
 public  void handleRequest(Request request,
    Response response) throws IOException 
 public synchronized  void init() 
    Initializes this context to take on requests. This action will cause the context to load it's configuration information from the webapp directory in the docbase.

    This method may only be called once and must be called before any requests are handled by this context.

 public boolean isDistributable() 
 public boolean isInvokerEnabled() 
 public boolean isWARExpanded() 
 public boolean isWARValidated() 
 public boolean isWorkDirPersistent() 
 public  void removeAttribute(String name) 
 public  void removeDestroyInterceptor(LifecycleInterceptor interceptor) 
    Removes a destroy() Interceptor.
 public  void removeInitInterceptor(LifecycleInterceptor interceptor) 
    Removes an init() Interceptor.
 public  void removeServiceInterceptor(ServiceInterceptor interceptor) 
    Removes a service() Interceptor.
 public  void setAttribute(String name,
    Object object) 
 public  void setClassLoader(ClassLoader classLoader) 
 public  void setClassPath(String classPath) 
 public  void setDescription(String description) 
 public  void setDistributable(boolean isDistributable) 
 public  void setDocumentBase(URL docBase) 
 public  void setInvokerEnabled(boolean isInvokerEnabled) 
 public  void setIsWARExpanded(boolean isWARExpanded) 
 public  void setIsWARValidated(boolean isWARValidated) 
 public  void setLogChannel(LogChannel logChannel) 
 public  void setPath(String path) 
 public  void setRequestSecurityProvider(RequestSecurityProvider rsProvider) 
 public  void setSessionTimeOut(int sessionTimeOut) 
 public  void setWorkDir(String workDir,
    boolean isWorkDirPersistent) 
 public  void setWorkDir(File workDir,
    boolean isWorkDirPersistent) 
 public  void setupLoadableServlet(String name) 
    Normally the loadable servlets are set within web.xml. If the context is a wrapper for an enhydra app then the one and only servlet must be started and init() called. The servlet is created by the ServletWrapper.
 public  void shutdown()