|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.faces.webapp Class FacesServlet
java.lang.Object javax.faces.webapp.FacesServlet
- 所有已实现的接口:
- Servlet
FacesServlet is a servlet that manages the request processing lifecycle for web applications that are utilizing JavaServer Faces to construct the user interface.
字段摘要 | |
---|---|
static String |
CONFIG_FILES_ATTR
Context initialization parameter name for a comma delimited list of context-relative resource paths (in addition to /WEB-INF/faces-config.xml which is loaded automatically
if it exists) containing JavaServer Faces configuration information. |
static String |
LIFECYCLE_ID_ATTR
Context initialization parameter name for the lifecycle identifier of the Lifecycle instance to be utilized. |
构造器摘要 | |
---|---|
FacesServlet()
|
方法摘要 | |
---|---|
void |
destroy()
Release all resources acquired at startup time. |
ServletConfig |
getServletConfig()
Return the ServletConfig instance for this servlet. |
String |
getServletInfo()
Return information about this Servlet. |
void |
init(ServletConfig servletConfig)
Acquire the factory instances we will require. |
void |
service(ServletRequest request,
ServletResponse response)
Process an incoming request, and create the corresponding response, by executing the request processing lifecycle. |
类方法继承 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
CONFIG_FILES_ATTR
public static final String CONFIG_FILES_ATTR
Context initialization parameter name for a comma delimited list of context-relative resource paths (in addition to
/WEB-INF/faces-config.xml
which is loaded automatically if it exists) containing JavaServer Faces configuration information.- 另请参见:
- 常量字段
LIFECYCLE_ID_ATTR
public static final String LIFECYCLE_ID_ATTR
Context initialization parameter name for the lifecycle identifier of the
Lifecycle
instance to be utilized.- 另请参见:
- 常量字段
构造器详细信息 |
---|
FacesServlet
public FacesServlet()
方法详细信息 |
---|
destroy
public void destroy()
getServletConfig
public ServletConfig getServletConfig()
Return the
ServletConfig
instance for this servlet.- 规范说明:
getServletConfig
in interfaceServlet
- 返回:
- the
ServletConfig
object that initializes this servlet - 另请参见:
Servlet.init(javax.servlet.ServletConfig)
getServletInfo
public String getServletInfo()
Return information about this Servlet.
- 规范说明:
getServletInfo
in interfaceServlet
- 返回:
- a
String
containing servlet information
init
public void init(ServletConfig servletConfig) throws ServletException
Acquire the factory instances we will require.
- 参数:
servletConfig
- aServletConfig
object containing the servlet's configuration and initialization parameters- 抛出异常:
ServletException
- if, for any reason, the startup of this Faces application failed. This includes errors in the config file that is parsed before or during the processing of thisinit()
method.- 另请参见:
UnavailableException
,Servlet.getServletConfig()
service
public void service(ServletRequest request, ServletResponse response) throws IOException, ServletException
Process an incoming request, and create the corresponding response, by executing the request processing lifecycle.
If the
request
andresponse
arguments to this method are not instances ofHttpServletRequest
andHttpServletResponse
, respectively, the results of invoking this method are undefined.This method must respond to requests that start with the following strings by invoking the
sendError
method on the response argument (cast toHttpServletResponse
), passing the codeHttpServletResponse.SC_NOT_FOUND
as the argument./WEB-INF/ /WEB-INF /META-INF/ /META-INF
- 参数:
request
- The servlet request we are processingresponse
- The servlet response we are creating- 抛出异常:
IOException
- if an input/output error occurs during processingServletException
- if a servlet error occurs during processing
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.