日期:2014-05-20  浏览次数:20689 次

翻译Servlet接口的英文(API)
红色部分我不懂是什么意思,望高手翻译一下,不要用软件翻译喔,以下是Servlet接口的API说明,先谢谢。
public interface ServletDefines methods that all servlets must implement. 

A servlet is a small Java program that runs within a Web server. Servlets receive and respond to requests from Web clients, usually across HTTP, the HyperText Transfer Protocol. 

To implement this interface, you can write a generic servlet that extends javax.servlet.GenericServlet or an HTTP servlet that extends javax.servlet.http.HttpServlet. 

This interface defines methods to initialize a servlet, to service requests, and to remove a servlet from the server. These are known as life-cycle methods and are called in the following sequence: 

1.The servlet is constructed, then initialized with the init method. 
2.Any calls from clients to the service method are handled. 
3.The servlet is taken out of service, then destroyed with the destroy method, then garbage collected and finalized.
In addition to the life-cycle methods, this interface provides the getServletConfig method, which the servlet can use to get any startup information, and the getServletInfo method, which allows the servlet to return basic information about itself, such as author, version, and copyright. 



------解决方案--------------------
2.Any calls from clients to the service method are handled. 
任何从客户端的调用,都是有限制的
3.The servlet is taken out of service, then destroyed with the destroy method, then garbage collected and finalized. 
In addition to the life-cycle methods
这个servlet 由service取出(调用),随着service的销毁而销毁(生命周期),

接着垃圾回收,最终(finalize)执行

除了生命周期的方法外