tomcat源码阅读1
org.apache.catalina 包
包内接口主要有:
Authenticator | Authenticator 是一个组件(通常是一个阀门或容器),它提供了这类服务的身份验证 |
Cluster | 一个Cluster 像一个当地客户服务器集群那样工作,它的实现需要支持集群内的多种交流方式 |
Contained | 它是一个解耦接口(Decoupling interface),并规定了它的是爱你累最多和一个容器实例相关联。 |
Container | 一个Container用于处理接受到得客户端请求,并且根据请求返回一个实例。 |
ContainerListener | 该接口定义了重要容器产生事件的监听器 |
ContainerServlet | ContainerServlet 是一个能访问Catalina内部功能的servlet,它由Catalina得类加载器加载而不是用web应用程序的类加载器加载。 |
Context | Context定义了表示servlet上下文的容器,也就是在Catalina的servlet引擎上的独立的web应用程序。 |
Engine | Engine表示一个表示整个Catalina servlet引擎的容器。 |
Group | 是UserDatabase中的User组的抽象表示。 |
Host | Host表示一个在Catalina servlet引擎上的虚拟主机。 |
InstanceListener | Interface defining a listener for significant events related to a specific servlet instance, rather than to the Wrapper component that is managing that instance. 该接口定义了针对特定servlet实例相关的重要事件监听器,而不是用于管理这些实例的包装组件。 |
Lifecycle | 定义了组件声明周期的常用方法。 |
LifecycleListener | 定义了组件声明周期事件的监听器。 |
Loader | 它表示一个java类加载器的实现,被容器用于加载类文件,以及一种检查库中是否有改变的机制。 |
Manager | 一个Manager管理特定容器相关的session池。 |
Pipeline | 该接口描述了一个阀门集合,这些阀门会由invoke()方法挨个唤醒。 |
Realm | A Realm is a read-only facade for an underlying security realm used to authenticate individual users, and identify the security roles associated with those users. Realm是一个底层安全域只读的外观,用于验证独立的用户,并且定义这些用户的安全角色。 |
Role | 对于安全角色的抽象表示,适用于JAAS类似的处理Principals的环境。 |
Server | Server表示整个Catalina servlet容器 |
Service | 一个Service是一组的一个或多个连接器,它们公用一个容器用于处理请求。 |
Session | Catalina是 Catalina内部的HttpSession外观,用于保持请求的状态信息。 |
SessionListener | 定义了Session产生事件的监听器。 |
Store | A Store is the abstraction of a Catalina component that provides persistent storage and loading of Sessions and their associated user data. Store是用于表示提供持久存储的Catalina组件以及session及其相关数据。 |
User | UserDatabase中的用户的抽象表示 |
UserDatabase | 一个用于表示User和Group的抽象表示,它由一个应用程序保持,有相应的Role,并且通过验证和访问控制来访问域(Realm) |
Valve | Valve表示与特定容器相关的请求处理组件。 |
Wrapper | Wrapper表示独立的servlet的容器,servlet由web应用程序的部署文件部署。 |
相关类
ContainerEvent | 产生事件唤醒监听容器编号的监听器 |
Globals | Global constants that are applicable to multiple packages within Catalina. 对于Catalina中多个包适用的全局常量。 |
InstanceEvent | General event for notifying listeners of significant events related to a specific instance of a Servlet, or a specific instance of a Filter, as opposed to the Wrapper component that manages it. 产生事件并唤醒跟特定servlet实例相关的监听器,或者过滤器的特定实例,而不是管理它的包装组建。 |
LifecycleEvent | 继承了Lifecycle接口的类产生事件唤醒组件。 |
ServerFactory | ServerFactory allows the registration of the (singleton) ServerFactory允许单例Server实例在JVM上注册,这样它可以被任何组件独立的访问 |
SessionEvent | 产生Session上的事件并唤醒监听器。 |