Java知识分享网 - 轻松学习从此开始!    

Java知识分享网

Java1234官方群25:java1234官方群17
Java1234官方群25:838462530
        
SpringBoot+SpringSecurity+Vue+ElementPlus权限系统实战课程 震撼发布        

最新Java全栈就业实战课程(免费)

springcloud分布式电商秒杀实战课程

IDEA永久激活

66套java实战课程无套路领取

锋哥开始收Java学员啦!

Python学习路线图

锋哥开始收Java学员啦!
当前位置: 主页 > Java文档 > Java基础相关 >

servlet 6.1 规范 PDF 下载


分享到:
时间:2025-01-23 11:45来源:http://www.java1234.com 作者:转载  侵权举报
servlet 6.1 规范
失效链接处理
servlet 6.1 规范 PDF 下载

 
 
相关截图:


 
主要内容:
 

2.1.4. Sensitive headers
The HttpServlet class defines the isSensitiveHeader method which identifies headers that will be
excluded from a response generated by the default doTrace implementation as recommended by
RFC 9110. The default implementation identifies the following headers as sensitive: - Authorization -
Cookie - X-Forwarded - Forwarded - Proxy-Authorization The handling of sensitive headers may be
customized by over-riding the isSensitiveHeader and/or doTrace methods.
 
 
2.1.5. Conditional GET Support
The HttpServlet class defines the getLastModified method to support conditional GET operations. A
conditional GET operation requests a resource be sent only if it has been modified since a specified
time. In appropriate situations, implementation of this method may aid efficient utilization of
network resources.
 
2.2. Number of Instances
The servlet declaration which is either via the annotation as described in Chapter 8, Annotations
and Pluggability or part of the deployment descriptor of the web application containing the servlet,
as described in Chapter 14, Deployment Descriptor, controls how the servlet container provides
instances of the servlet.
For a servlet not hosted in a distributed environment (the default), the servlet container must use
only one instance per servlet declaration.
In the case where a servlet was deployed as part of an application marked in the deployment
descriptor as distributable, a container may have only one instance per servlet declaration per Java
Virtual Machine (JVM™).
 
2.3. Servlet Life Cycle
A servlet is managed through a well defined life cycle that defines how it is loaded and instantiated,
is initialized, handles requests from clients, and is taken out of service. This life cycle is expressed
in the API by the initservice, and destroy methods of the jakarta.servlet.Servlet interface that all
12servlets must implement directly or indirectly through the GenericServlet or HttpServlet abstract
classes.


 

------分隔线----------------------------

锋哥公众号


锋哥微信


关注公众号
【Java资料站】
回复 666
获取 
66套java
从菜鸡到大神
项目实战课程

锋哥推荐