![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Filter-Listener-Servlet
军伟@
Java开发工程师
展开
-
Java-Filter-FilterChain-FilterConfig源码
public interface Filter { /** * Called by the web container to indicate to a filter that it is being placed into * service. The servlet container calls the init method exactly once after instanti原创 2015-10-17 15:11:04 · 1689 阅读 · 2 评论 -
Java-ServletContext
//定义了一系列servlet用来与servlet 容器交流的方法public interface ServletContext { /** * Returns a ServletContext object that * corresponds to a specified URL on the server. * This method allows原创 2015-10-23 19:37:37 · 788 阅读 · 0 评论 -
Java-HttpSession
//session给用户一种标志,让用户可以在不同页面以及网站中都有一个特殊的标记public interface HttpSession { /** * Returns the time when this session was created, measured * in milliseconds since midnight January 1, 1970 G原创 2015-10-24 17:05:57 · 861 阅读 · 0 评论 -
Java-Cookie源码
public class Cookie implements Cloneable { private static final String LSTRING_FILE = "javax.servlet.http.LocalStrings"; private static ResourceBundle lStrings = ResourceBundle.getBundle(LS原创 2015-10-17 14:30:03 · 1579 阅读 · 0 评论 -
Java-Servlet
public interface Servlet { /** * Called by the servlet container to indicate to a servlet that the * servlet is being placed into service. * The servlet container calls the init原创 2015-10-23 18:06:34 · 821 阅读 · 0 评论 -
Java-HttpServletRequest
//继承了ServletRequest接口,给servlet提供Request请求信息,servlet 容器会创建以后HttpServletRequest对象//并把它作为一个参数给service函数public interface HttpServletRequest extends ServletRequest { /** * String identifier for原创 2015-10-24 15:54:12 · 1347 阅读 · 0 评论 -
Java-HttpServlet
/** * * Provides an abstract class to be subclassed to create * an HTTP servlet suitable for a Web site. A subclass of * HttpServlet must override at least * one method, usually one of these: *原创 2015-10-24 15:24:46 · 1245 阅读 · 0 评论 -
Java-ServletContextListener
/** * Implementations of this interface receive notifications about * changes to the servlet context of the web application they are * part of. * To receive notification events, the implement原创 2015-10-23 19:58:44 · 985 阅读 · 0 评论 -
Servlet3.0注解@WebInitParam和@WebServlet
在以前的servlet中我们初始化一些参数都是配置在web.xml中的,自从servlet3.0之后给我们提供了注解@WebServlet和@WebInitParam,@WebServlet是用来配置servlet的属性的,@WebInitParam是用来配置一些初始化属性的。@WebServlet和@WebInitParam使用如下:package roseindia.net;im原创 2016-10-21 15:40:53 · 15041 阅读 · 0 评论