org.apache.jetspeed.container
Class JetspeedContainerServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.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 188445 2005-03-25 21:11:13Z ate $
Author:
David Sean Taylor
See Also:
Serialized Form

Field Summary
private  String contextName
           
private static String INIT_DONE_MSG
           
private static String INIT_FAILED_MSG
           
private static String INIT_START_MSG
           
private static String JCS
           
private  boolean started
           
private static String STARTED_MSG
           
private  Timer startTimer
           
private static String STOP_FAILED_MSG
           
private static String STOP_MSG
           
private static String TRY_START_MSG
           
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
JetspeedContainerServlet()
           
 
Method Summary
private  boolean attemptStart(javax.servlet.ServletContext context, 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
 

Field Detail

contextName

private String contextName

started

private boolean started

startTimer

private Timer startTimer

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
Constructor Detail

JetspeedContainerServlet

public JetspeedContainerServlet()
Method Detail

init

public final void init(javax.servlet.ServletConfig config)
                throws javax.servlet.ServletException
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 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.

Parameters:
request - Servlet request.
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.

Parameters:
req - Servlet request.
res - Servlet response.
Throws:
IOException - a servlet exception.
javax.servlet.ServletException - a servlet exception.

destroy

public final void destroy()


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.