tomcat源码阅读26

org.apache.tomcat.util.net包

Interface Summary
AprEndpoint.Handler

处理socket的接口

SSLSupport
TcpConnectionHandler This interface will be implemented by any object that uses TcpConnections.

Class Summary
AprEndpoint

APR tailored thread pool, providing the following services: Socket acceptor thread Socket poller thread Sendfile thread Worker threads pool When switching to Java 5, there's an opportunity to use the virtual machine's thread pool.

APR定制的线程池,提供了如下服务:Socket接受线程、socket poller线程,文件发送线程、工作线程池。转换到Java5的时候,有可能使用虚拟机的线程池

AprEndpoint.SendfileData

SendfileData class.

...

PoolTcpEndpoint

Handle incoming TCP connections.

处理收到的TCP连接

ServerSocketFactory

This class creates server sockets.

该类创建服务器socket

SSLImplementation
SSLSupport.CipherData

Simple data class that represents the cipher being used, along with the corresponding effective key size.

~~~~

TcpConnection
URL

URL is designed to provide public APIs for parsing and synthesizing Uniform Resource Locators as similar as possible to the APIs of java.net.URL, but without the ability to open a stream or connection.

见前文~~~

org.apache.tomcat.util.net.jsse包

Class Summary
JSSE13SocketFactory SSL server socket factory.
JSSE14SocketFactory SSL server socket factory.
JSSEImplementation
JSSEKeyManager X509KeyManager which allows selection of a specific keypair and certificate chain (identified by their keystore alias name) to be used by the server to authenticate itself to SSL clients.
JSSESocketFactory SSL server socket factory.

org.apache.tomcat.util.res 包

Class Summary
StringManager

An internationalization / localization helper class which reduces the bother of handling ResourceBundles and takes care of the common cases of message formating which otherwise require the creation of Object arrays and such.

见前文~~~~

org.apache.tomcat.util.threads 包

Interface Summary
Expirer.ExpireCallback
ThreadPool.ThreadPoolListener

创建或停止线程的时候唤醒应用程序的接口

ThreadPoolRunnable

如果想在线程池中运行一段代码,实现该接口

Class Summary
Expirer

终结不再使用的对象

Reaper

后台线程,用于定时的使用注册对象来收割(reaping)旧的Session数据

ThreadPool

A thread pool that is trying to copy the apache process management.

线程池,尝试拷贝Apache处理管理

ThreadPool.ControlRunnable

Thread对象提交线程池中的各种动作。

ThreadPool.MonitorRunnable

周期性的提交动作,在该例子中式清除动作

ThreadWithAttributes

特定的线程,允许存储属性和记录

原文地址:https://www.cnblogs.com/macula7/p/1960494.html