Package com.liferay.portal.servlet
Class I18nServlet
Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.liferay.portal.servlet.I18nServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class I18nServlet
extends jakarta.servlet.http.HttpServlet
- Author:
- Brian Wing Shun Chan
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected I18nServlet.I18nDatagetI18nData(jakarta.servlet.http.HttpServletRequest httpServletRequest) protected I18nServlet.I18nDatagetI18nData(Locale locale) protected voidsendRedirect(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, I18nServlet.I18nData i18nData) voidservice(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse) static voidsetLanguageIds(com.liferay.portal.kernel.xml.Element root) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
I18nServlet
public I18nServlet()
-
-
Method Details
-
getLanguageIds
-
getLanguageIdsMap
-
setLanguageIds
public static void setLanguageIds(com.liferay.portal.kernel.xml.Element root) -
service
public void service(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse) throws IOException, jakarta.servlet.ServletException - Overrides:
servicein classjakarta.servlet.http.HttpServlet- Throws:
IOExceptionjakarta.servlet.ServletException
-
getI18nData
protected I18nServlet.I18nData getI18nData(jakarta.servlet.http.HttpServletRequest httpServletRequest) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getI18nData
protected I18nServlet.I18nData getI18nData(Locale locale) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
sendRedirect
protected void sendRedirect(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, I18nServlet.I18nData i18nData)
-