|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.apache.jetspeed.engine.JetspeedServlet
public class JetspeedServlet
Jetspeed Servlet entry point.
Field Summary | |
---|---|
private static org.apache.commons.logging.Log |
console
|
private static org.apache.jetspeed.request.RequestContextComponent |
contextComponent
|
private static org.apache.jetspeed.engine.Engine |
engine
The Jetspeed Engine |
private static boolean |
firstDoGet
Should initialization activities be performed during doGet() execution? |
private static boolean |
firstInit
In certain situations the init() method is called more than once, somtimes even concurrently. |
private static String |
INIT_DONE_MSG
|
private static String |
INIT_START_MSG
|
private static Throwable |
initFailure
Whether init succeeded or not. |
private static org.apache.commons.logging.Log |
log
|
private static String |
webappRoot
|
Fields inherited from interface org.apache.jetspeed.engine.JetspeedEngineConstants |
---|
APPLICATION_ROOT_DEFAULT, APPLICATION_ROOT_KEY, CONFIG_NAMESPACE, CONSOLE_LOGGER, DEFAULT_LOGGER, JETSPEED_PROPERTIES_DEFAULT, JETSPEED_PROPERTIES_KEY, LOG4J_CONFIG_FILE, LOG4J_CONFIG_FILE_DEFAULT, LOGGING_ROOT, LOGGING_ROOT_DEFAULT, MAIL_SERVER_KEY, PIPELINE_CLASS, PIPELINE_DEFAULT, PIPELINE_DIRECTORY, PREFERENCES_FACTORY, PREFERENCES_FACTORY_DEFAULT, SCHEDULER_LOG_FACILITY, WEB_CONTEXT, WEBAPP_ROOT_KEY |
Constructor Summary | |
---|---|
JetspeedServlet()
|
Method Summary | |
---|---|
void |
destroy()
The Servlet destroy method. |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
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.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Initializes the services which need RunData to initialize
themselves (post startup). |
void |
init(javax.servlet.ServletConfig config)
Intialize Servlet. |
protected org.apache.jetspeed.components.ComponentManager |
initializeComponentManager(javax.servlet.ServletConfig servletConfig,
String appRoot,
org.apache.commons.configuration.Configuration configuration)
If you prefer to use a component manager other than Spring, you can override this method to do so. |
void |
sessionCreated(javax.servlet.http.HttpSessionEvent se)
|
void |
sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
|
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 |
---|
private static org.apache.commons.logging.Log log
private static org.apache.commons.logging.Log console
private static boolean firstInit
private static Throwable initFailure
private static boolean firstDoGet
private static org.apache.jetspeed.engine.Engine engine
private static org.apache.jetspeed.request.RequestContextComponent contextComponent
private static String webappRoot
private static final String INIT_START_MSG
private static final String INIT_DONE_MSG
Constructor Detail |
---|
public JetspeedServlet()
Method Detail |
---|
public final void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public final void init(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
RunData
to initialize
themselves (post startup).
data
- The first GET
request.public final void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException, javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
req
- Servlet request.res
- Servlet response.
IOException
- a servlet exception.
javax.servlet.ServletException
- a servlet exception.public final void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException, javax.servlet.ServletException
doPost
in class javax.servlet.http.HttpServlet
req
- Servlet request.res
- Servlet response.
IOException
- a servlet exception.
javax.servlet.ServletException
- a servlet exception.public final void destroy()
Servlet
destroy method. Invokes
ServiceBroker
tear down method.
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
protected org.apache.jetspeed.components.ComponentManager initializeComponentManager(javax.servlet.ServletConfig servletConfig, String appRoot, org.apache.commons.configuration.Configuration configuration) throws IOException
servletConfig
- appRoot
- configuration
-
IOException
public void sessionCreated(javax.servlet.http.HttpSessionEvent se)
sessionCreated
in interface javax.servlet.http.HttpSessionListener
public void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
sessionDestroyed
in interface javax.servlet.http.HttpSessionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |