org.apache.jetspeed.container
Class JetspeedContainerServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.jetspeed.container.JetspeedContainerServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class JetspeedContainerServlet
- extends javax.servlet.http.HttpServlet
Jetspeed Container entry point.
- Version:
- $Id: JetspeedContainerServlet.java 593180 2007-11-08 15:00:35Z weaver $
- Author:
- David Sean Taylor
- See Also:
- Serialized Form
Method Summary |
private boolean |
attemptStart(javax.servlet.ServletContext context,
String contextName,
String contextPath,
String paDir,
ClassLoader paClassLoader)
|
void |
destroy()
|
private void |
displayPortletNotAvailableMessage(Throwable t,
javax.servlet.http.HttpServletResponse response,
String portletName)
|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
The primary method invoked when the Jetspeed servlet is executed. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
In this application doGet and doPost are the same thing. |
void |
init(javax.servlet.ServletConfig config)
|
private void |
startPortletApplication(javax.servlet.ServletContext context,
String paDir,
ClassLoader paClassLoader)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contextName
private String contextName
started
private boolean started
startTimer
private Timer startTimer
psm
private org.apache.jetspeed.container.session.PortalSessionsManager psm
contextPath
private String contextPath
JCS
private static final String JCS
- See Also:
- Constant Field Values
INIT_START_MSG
private static final String INIT_START_MSG
- See Also:
- Constant Field Values
TRY_START_MSG
private static final String TRY_START_MSG
- See Also:
- Constant Field Values
STARTED_MSG
private static final String STARTED_MSG
- See Also:
- Constant Field Values
INIT_FAILED_MSG
private static final String INIT_FAILED_MSG
- See Also:
- Constant Field Values
INIT_DONE_MSG
private static final String INIT_DONE_MSG
- See Also:
- Constant Field Values
STOP_MSG
private static final String STOP_MSG
- See Also:
- Constant Field Values
STOP_FAILED_MSG
private static final String STOP_FAILED_MSG
- See Also:
- Constant Field Values
JetspeedContainerServlet
public JetspeedContainerServlet()
init
public final void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
startPortletApplication
private void startPortletApplication(javax.servlet.ServletContext context,
String paDir,
ClassLoader paClassLoader)
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
attemptStart
private boolean attemptStart(javax.servlet.ServletContext context,
String contextName,
String contextPath,
String paDir,
ClassLoader paClassLoader)
doGet
public final void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
- The primary method invoked when the Jetspeed servlet is executed.
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Parameters:
request
- Servlet request.ressponse
- Servlet response.
- Throws:
IOException
- a servlet exception.
javax.servlet.ServletException
- a servlet exception.
displayPortletNotAvailableMessage
private void displayPortletNotAvailableMessage(Throwable t,
javax.servlet.http.HttpServletResponse response,
String portletName)
throws IOException
- Throws:
IOException
doPost
public final void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
- In this application doGet and doPost are the same thing.
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Parameters:
req
- Servlet request.res
- Servlet response.
- Throws:
IOException
- a servlet exception.
javax.servlet.ServletException
- a servlet exception.
destroy
public final void destroy()
- Specified by:
destroy
in interface javax.servlet.Servlet
- Overrides:
destroy
in class javax.servlet.GenericServlet
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.