com.liferay.portal.servlet
Class MainServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.struts.action.ActionServlet
              extended by com.liferay.portal.servlet.MainServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class MainServlet
extends org.apache.struts.action.ActionServlet

View Source

Author:
Brian Wing Shun Chan, Jorge Ferrer, Brian Myunghun Kim
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.action.ActionServlet
config, configDigester, convertNull, dataSources, internal, internalName, log, processor, registrations, servletMapping, servletName
 
Constructor Summary
MainServlet()
           
 
Method Summary
 void callParentService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void checkWebSettings(java.lang.String xml)
           
 void destroy()
           
protected  void destroyCompany(long companyId)
           
protected  org.apache.struts.action.RequestProcessor getRequestProcessor(org.apache.struts.config.ModuleConfig moduleConfig)
           
 void init()
           
protected  void initPortletApp(com.liferay.portal.model.Portlet portlet, javax.servlet.ServletContext servletContext)
           
protected  void processServicePrePrincipalException(java.lang.Throwable t, long userId, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void sendError(int status, java.lang.Throwable t, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class org.apache.struts.action.ActionServlet
addServletMapping, destroyConfigDigester, destroyInternal, destroyModules, doGet, doPost, getInternal, getModuleConfig, initConfigDigester, initInternal, initModuleConfig, initModuleConfigFactory, initModuleDataSources, initModuleMessageResources, initModulePlugIns, initModulePrefixes, initOther, initServlet, parseModuleConfigFile, process
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, 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
 

Constructor Detail

MainServlet

public MainServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class org.apache.struts.action.ActionServlet
Throws:
javax.servlet.ServletException

callParentService

public void callParentService(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws java.io.IOException,
                              javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

service

public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws java.io.IOException,
                    javax.servlet.ServletException
Overrides:
service in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class org.apache.struts.action.ActionServlet

checkWebSettings

protected void checkWebSettings(java.lang.String xml)
                         throws com.liferay.portal.kernel.xml.DocumentException
Throws:
com.liferay.portal.kernel.xml.DocumentException

destroyCompany

protected void destroyCompany(long companyId)

getRequestProcessor

protected org.apache.struts.action.RequestProcessor getRequestProcessor(org.apache.struts.config.ModuleConfig moduleConfig)
                                                                 throws javax.servlet.ServletException
Overrides:
getRequestProcessor in class org.apache.struts.action.ActionServlet
Throws:
javax.servlet.ServletException

initPortletApp

protected void initPortletApp(com.liferay.portal.model.Portlet portlet,
                              javax.servlet.ServletContext servletContext)
                       throws javax.portlet.PortletException
Throws:
javax.portlet.PortletException

processServicePrePrincipalException

protected void processServicePrePrincipalException(java.lang.Throwable t,
                                                   long userId,
                                                   javax.servlet.http.HttpServletRequest request,
                                                   javax.servlet.http.HttpServletResponse response)
                                            throws java.io.IOException,
                                                   javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

sendError

protected void sendError(int status,
                         java.lang.Throwable t,
                         javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws java.io.IOException,
                         javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException