Package javax.servlet 包介绍

Package javax.servlet 包介绍

The javax.servlet packagecontains a number of classes and interfaces that describe and define thecontracts between a servlet class and the runtime environment provided for aninstance of such a class by a conforming servlet container.

javax.servlet 包 包含了一定数量的类和接口,这些类和接口描述和定义了一个servlet程序和运行时环境的合同。这运行时环境提供给遵循 servlet容器的类的实例。

Interface Summary

Filter

A filter is an object that performs filtering tasks on either the request to a resource (a servlet or static content), or on the response from a resource, or both.

一个过滤器(filter)是一个为 资源(一个servlet程序或静态内容)的请求,或者为来自资源的一个相应,也有可能是两者 执行过滤任务的类

FilterChain

A FilterChain is an object provided by the servlet container to the developer giving a view into the invocation chain of a filtered request for a resource.

一个过滤链(FilterChain)是servlet容器为开发人员提供的一个类,用于提供一个为了一个资源的过滤后的请求调用视图。

FilterConfig

A filter configuration object used by a servlet container to pass information to a filter during initialization.

一个过滤器配置对象,在过滤器初始化时被servlet容器用于初始化一个过滤器

RequestDispatcher

Defines an object that receives requests from the client and sends them to any resource (such as a servlet, HTML file, or JSP file) on the server.

定义了一个对象,接受来自客户端的请求并将请求转发给任何资源(如一个servlet程序,html文件,或者一个jsp文件)

Servlet

Defines methods that all servlets must implement.

定义了所有的servlet程序都必须实现的一些方法

ServletConfig

A servlet configuration object used by a servlet container to pass information to a servlet during initialization.

一个servlet程序配置对象,在servlet程序初始化时被servlet容器用于初始化一个servlet程序

ServletContext

Defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.

定义了一组一个servlet程序用于与servlet容器通讯的方法。如得到一个文件的MIME类型、分派的请求或写入日志文件

ServletContextAttributeListener

Implementations of this interface receive notifications of changes to the attribute list on the servlet context of a web application.

这个接口的实现,接受一个web 应用的 servlet上下文中的属性列表的变化的通知。

ServletContextListener

Implementations of this interface receive notifications about changes to the servlet context of the web application they are part of.

这个接口的实现,接受关于web应用servlet上下文的变动的通知。

ServletRequest

Defines an object to provide client request information to a servlet.

定义了为一个servlet程序提供请求信息的类

ServletRequestAttributeListener

A ServletRequestAttributeListener can be implemented by the developer interested in being notified of request attribute changes.

如果开发人员关注请求的属性发生了变化通知,可以实现这个接口

ServletRequestListener

A ServletRequestListener can be implemented by the developer interested in being notified of requests coming in and out of scope in a web component.

如果开发人员关注请求进入和离开web组件的通知,可以实现这个接口

ServletResponse

Defines an object to assist a servlet in sending a response to the client.

定了帮助servlet程序向客户端发出一个相应的类

SingleThreadModel

Deprecated. As of Java Servlet API 2.4, with no direct replacement.

废弃的。自 Java Servlet API 2.4起 ,没有被取代的。

 

Class Summary

GenericServlet

Defines a generic, protocol-independent servlet.

定义了一个通用的,与协议无关的 servlet程序。

ServletContextAttributeEvent

This is the event class for notifications about changes to the attributes of the servlet context of a web application.

这是一个web 应用的servlet上下文属性变动通知的事件类。

ServletContextEvent

This is the event class for notifications about changes to the servlet context of a web application.

这是一个web 应用的servlet上下变动通知的事件类。

ServletInputStream

Provides an input stream for reading binary data from a client request, including an efficient readLine method for reading data one line at a time.

提供了一个读取来自一个客户端请求的二进制数据的输入流,包含了一个高效率一次读取一行的方法(randLine)

ServletOutputStream

Provides an output stream for sending binary data to the client.

提供了一个向客户端发送二进制数据的输出流。

ServletRequestAttributeEvent

This is the event class for notifications of changes to the attributes of the servlet request in an application.

这是在一个应用中servlet请求的属性发生变动的通知的事件类

ServletRequestEvent

Events of this kind indicate lifecycle events for a ServletRequest.

关于一个servletRequest 请求生命周期系列事件的世间类。

ServletRequestWrapper

Provides a convenient implementation of the ServletRequest interface that can be subclassed by developers wishing to adapt the request to a Servlet.

提供了一个ServletRequest接口的方便的实现。可以被希望适配一个Servlet请求的开发人员所继承。

ServletResponseWrapper

Provides a convenient implementation of the ServletResponse interface that can be subclassed by developers wishing to adapt the response from a Servlet.

提供了一个ServletResponse接口的方便的实现。可以被希望适配一个来自Servlet 的相应的开发人员所继承。

 

Exception Summary

ServletException

Defines a general exception a servlet can throw when it encounters difficulty.

定义了一个一般异常,一个Servlet程序在遭遇困难的时候可以抛出。

UnavailableException

Defines an exception that a servlet or filter throws to indicate that it is permanently or temporarily unavailable.

一个Servlet程序或者过滤器抛出该异常。用于指示它永久的或暂时的不可用。

 

欢迎各种板儿砖!

你可能感兴趣的:(java,ee,笔记)