📄 webbean.java
字号:
/** * $RCSfile$ * $Revision: 10195 $ * $Date: 2008-04-10 15:15:47 -0700 (Thu, 10 Apr 2008) $ * * Copyright (C) 2008 Jive Software. All rights reserved. * * This software is published under the terms of the GNU Public License (GPL), * a copy of which is included in this distribution, or a commercial license * agreement with Jive. */package org.jivesoftware.util;import javax.servlet.ServletContext;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import javax.servlet.http.HttpSession;import javax.servlet.jsp.JspWriter;import javax.servlet.jsp.PageContext;public abstract class WebBean { public HttpSession session; public HttpServletRequest request; public HttpServletResponse response; public ServletContext application; public JspWriter out; public void init(HttpServletRequest request, HttpServletResponse response, HttpSession session, ServletContext app, JspWriter out) { this.request = request; this.response = response; this.session = session; this.application = app; this.out = out; } public void init(HttpServletRequest request, HttpServletResponse response, HttpSession session, ServletContext app) { this.request = request; this.response = response; this.session = session; this.application = app; } public void init(PageContext pageContext){ this.request = (HttpServletRequest)pageContext.getRequest(); this.response = (HttpServletResponse)pageContext.getResponse(); this.session = (HttpSession)pageContext.getSession(); this.application = (ServletContext)pageContext.getServletContext(); this.out = (JspWriter)pageContext.getOut(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -