com.liferay.portal.servlet
Class MainServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.struts.action.ActionServlet
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
Fields inherited from class org.apache.struts.action.ActionServlet |
config, configDigester, convertNull, dataSources, internal, internalName, log, processor, registrations, servletMapping, servletName |
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 |
checkPortletSessionTracker(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 |
getPassword(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 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 |
initResourceCodes(List<Portlet> portlets)
|
protected void |
initServerDetector()
|
protected void |
initServletContextPool()
|
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 javax.servlet.http.HttpServletRequest |
protectRequest(javax.servlet.http.HttpServletRequest request,
String remoteUser)
|
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)
|
protected void |
setPrincipal(long companyId,
long userId,
String remoteUser,
String password)
|
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 |
MainServlet
public MainServlet()
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
checkPortletSessionTracker
protected void checkPortletSessionTracker(javax.servlet.http.HttpServletRequest request)
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)
getPassword
protected String getPassword(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
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
initResourceCodes
protected void initResourceCodes(List<Portlet> portlets)
throws Exception
- Throws:
Exception
initServerDetector
protected void initServerDetector()
throws Exception
- Throws:
Exception
initServletContextPool
protected void initServletContextPool()
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
protectRequest
protected javax.servlet.http.HttpServletRequest protectRequest(javax.servlet.http.HttpServletRequest request,
String remoteUser)
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)
setPrincipal
protected void setPrincipal(long companyId,
long userId,
String remoteUser,
String password)