Liferay 6.2-ce-ga5

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:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

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

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
protected  void callParentDestroy()
           
protected  void callParentInit()
           
protected  void callParentService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void checkPortletRequestProcessor(javax.servlet.http.HttpServletRequest request)
           
protected  void checkServletContext(javax.servlet.http.HttpServletRequest request)
           
protected  void checkTilesDefinitionsFactory()
           
protected  void checkWebSettings(String xml)
           
 void destroy()
           
protected  void destroyCompanies()
           
protected  void destroyCompany(long companyId)
           
protected  void destroyPortlets(List<Portlet> portlets)
           
protected  javax.servlet.http.HttpServletRequest encryptRequest(javax.servlet.http.HttpServletRequest request, long companyId)
           
protected  long getCompanyId(javax.servlet.http.HttpServletRequest request)
           
protected  String getRemoteUser(javax.servlet.http.HttpServletRequest request, long userId)
           
protected  org.apache.struts.action.RequestProcessor getRequestProcessor(org.apache.struts.config.ModuleConfig moduleConfig)
           
protected  long getUserId(javax.servlet.http.HttpServletRequest request)
           
protected  boolean hasAbsoluteRedirect(javax.servlet.http.HttpServletRequest request)
           
protected  boolean hasThemeDisplay(javax.servlet.http.HttpServletRequest request)
           
 void init()
           
protected  void initCompanies()
           
protected  void initExt()
           
protected  void initLayoutTemplates(PluginPackage pluginPackage, List<Portlet> portlets)
           
protected  void initListeners()
           
protected  PluginPackage initPluginPackage()
           
protected  void initPlugins()
           
protected  void initPortletApp(Portlet portlet, javax.servlet.ServletContext servletContext)
           
protected  List<Portlet> initPortlets(PluginPackage pluginPackage)
           
protected  void initResourceActions(List<Portlet> portlets)
           
protected  void initServerDetector()
           
protected  void initSocial(PluginPackage pluginPackage)
           
protected  void initThemes(PluginPackage pluginPackage, List<Portlet> portlets)
           
protected  void initWebSettings()
           
protected  long loginUser(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, long companyId, long userId, String remoteUser)
           
protected  boolean processCompanyInactiveRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, long companyId)
           
protected  void processGlobalShutdownEvents()
           
protected  void processGlobalStartupEvents()
           
protected  boolean processGroupInactiveRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void processInactiveRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String messageKey)
           
protected  boolean processMaintenanceRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void processServicePost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  boolean processServicePre(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, long userId)
           
protected  void processServicePrePrincipalException(Throwable t, long userId, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  boolean processShutdownRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void processStartupEvents()
           
protected  void sendError(int status, Throwable t, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void setPortalPort(javax.servlet.http.HttpServletRequest request)
           
 
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

destroy

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

init

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

service

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

callParentDestroy

protected void callParentDestroy()

callParentInit

protected void callParentInit()
                       throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

callParentService

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

checkPortletRequestProcessor

protected void checkPortletRequestProcessor(javax.servlet.http.HttpServletRequest request)
                                     throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

checkServletContext

protected void checkServletContext(javax.servlet.http.HttpServletRequest request)

checkTilesDefinitionsFactory

protected void checkTilesDefinitionsFactory()

checkWebSettings

protected void checkWebSettings(String xml)
                         throws DocumentException
Throws:
DocumentException

destroyCompanies

protected void destroyCompanies()
                         throws Exception
Throws:
Exception

destroyCompany

protected void destroyCompany(long companyId)

destroyPortlets

protected void destroyPortlets(List<Portlet> portlets)
                        throws Exception
Throws:
Exception

encryptRequest

protected javax.servlet.http.HttpServletRequest encryptRequest(javax.servlet.http.HttpServletRequest request,
                                                               long companyId)

getCompanyId

protected long getCompanyId(javax.servlet.http.HttpServletRequest request)

getRemoteUser

protected String getRemoteUser(javax.servlet.http.HttpServletRequest request,
                               long userId)

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

getUserId

protected long getUserId(javax.servlet.http.HttpServletRequest request)

hasAbsoluteRedirect

protected boolean hasAbsoluteRedirect(javax.servlet.http.HttpServletRequest request)

hasThemeDisplay

protected boolean hasThemeDisplay(javax.servlet.http.HttpServletRequest request)

initCompanies

protected void initCompanies()
                      throws Exception
Throws:
Exception

initExt

protected void initExt()
                throws Exception
Throws:
Exception

initLayoutTemplates

protected void initLayoutTemplates(PluginPackage pluginPackage,
                                   List<Portlet> portlets)
                            throws Exception
Throws:
Exception

initListeners

protected void initListeners()

initPluginPackage

protected PluginPackage initPluginPackage()
                                   throws Exception
Throws:
Exception

initPlugins

protected void initPlugins()
                    throws Exception
Throws:
Exception
See Also:
SetupWizardUtil._initPlugins()

initPortletApp

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

initPortlets

protected List<Portlet> initPortlets(PluginPackage pluginPackage)
                              throws Exception
Throws:
Exception

initResourceActions

protected void initResourceActions(List<Portlet> portlets)
                            throws Exception
Throws:
Exception

initServerDetector

protected void initServerDetector()
                           throws Exception
Throws:
Exception

initSocial

protected void initSocial(PluginPackage pluginPackage)
                   throws Exception
Throws:
Exception

initThemes

protected void initThemes(PluginPackage pluginPackage,
                          List<Portlet> portlets)
                   throws Exception
Throws:
Exception

initWebSettings

protected void initWebSettings()
                        throws Exception
Throws:
Exception

loginUser

protected long loginUser(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         long companyId,
                         long userId,
                         String remoteUser)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

processCompanyInactiveRequest

protected boolean processCompanyInactiveRequest(javax.servlet.http.HttpServletRequest request,
                                                javax.servlet.http.HttpServletResponse response,
                                                long companyId)
                                         throws IOException
Throws:
IOException

processGlobalShutdownEvents

protected void processGlobalShutdownEvents()
                                    throws Exception
Throws:
Exception

processGlobalStartupEvents

protected void processGlobalStartupEvents()
                                   throws Exception
Throws:
Exception

processGroupInactiveRequest

protected boolean processGroupInactiveRequest(javax.servlet.http.HttpServletRequest request,
                                              javax.servlet.http.HttpServletResponse response)
                                       throws IOException,
                                              PortalException,
                                              SystemException
Throws:
IOException
PortalException
SystemException

processInactiveRequest

protected void processInactiveRequest(javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.http.HttpServletResponse response,
                                      String messageKey)
                               throws IOException
Throws:
IOException

processMaintenanceRequest

protected boolean processMaintenanceRequest(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response)
                                     throws IOException,
                                            javax.servlet.ServletException
Throws:
IOException
javax.servlet.ServletException

processServicePost

protected void processServicePost(javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response)

processServicePre

protected boolean processServicePre(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    long userId)
                             throws IOException,
                                    javax.servlet.ServletException
Throws:
IOException
javax.servlet.ServletException

processServicePrePrincipalException

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

processShutdownRequest

protected boolean processShutdownRequest(javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response)
                                  throws IOException
Throws:
IOException

processStartupEvents

protected void processStartupEvents()
                             throws Exception
Throws:
Exception

sendError

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

setPortalPort

protected void setPortalPort(javax.servlet.http.HttpServletRequest request)

Liferay 6.2-ce-ga5