Package com.portal.web
Class PInfranetServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.portal.web.PInfranetServlet
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class PInfranetServlet
extends javax.servlet.http.HttpServlet
PInfranetServlet is the entrance point for WebKit server components.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Cleans up open Infranet connections.voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Handles HTTP servletgetrequests.voiddoPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Handles requests from HTML forms with input data.voidinit(javax.servlet.ServletConfig config) The servlet's initialization routine.Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPut, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
PInfranetServlet
public PInfranetServlet()
-
-
Method Details
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException The servlet's initialization routine.- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException- thrown if the default property file is not found
-
destroy
public void destroy()Cleans up open Infranet connections.- Specified by:
destroyin interfacejavax.servlet.Servlet- Overrides:
destroyin classjavax.servlet.GenericServlet
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException Handles HTTP servletgetrequests. All the requests from HTML or JSPs should be associated with this parameter to control workflow.- page - specifies the NEXT page Optional
- sessionState - specifies if the session's state is equal to "start"/"end"
- loadBean - (deprecated) specifies if a bean has to be loaded
- sessionID - (optional for create and login) should be encoded in the URL
(
request.encodeURL) to support sessions when cookies are disabled
- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Parameters:
req- the servlet's requestres- the servlet's response- Throws:
javax.servlet.ServletExceptionIOException
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException Handles requests from HTML forms with input data. The input data is sent to the business object that processes the input and returns the result bean. The result bean is placed in the context of the request. The request is forwarded to the appropriate JSP for display. All the requests should be associated with the following hidden value:- page - specifies the NEXT page Optional
- sessionState - to specify "start" or "end"
- sessionID - (optional for create and login) should be encoded in the URL
(
request.encodeURL) to support sessions when cookies are disabled
invalid input: '<'/UL
- Overrides:
doPostin classjavax.servlet.http.HttpServlet- Parameters:
req- the servlet's requestres- the servlet's response- Throws:
javax.servlet.ServletExceptionIOException
-