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
    Modifier and Type
    Class
    Description
    protected class 
     
  • Field Summary

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getI18nData(jakarta.servlet.http.HttpServletRequest httpServletRequest)
     
     
    static Set<String>
     
    static Map<String,String>
     
    protected void
    sendRedirect(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, I18nServlet.I18nData i18nData)
     
    void
    service(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse)
     
    static void
    setLanguageIds(com.liferay.portal.kernel.xml.Element root)
     

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, 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 Details

    • I18nServlet

      public I18nServlet()
  • Method Details

    • getLanguageIds

      public static Set<String> getLanguageIds()
    • getLanguageIdsMap

      public static Map<String,String> 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:
      service in class jakarta.servlet.http.HttpServlet
      Throws:
      IOException
      jakarta.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)