Class I18nServlet

Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.liferay.portal.servlet.I18nServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class I18nServlet extends javax.servlet.http.HttpServlet
Author:
Brian Wing Shun Chan
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    Methods inherited from class javax.servlet.http.HttpServlet

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

    Methods inherited from class javax.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, 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(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws IOException, javax.servlet.ServletException
      Overrides:
      service in class javax.servlet.http.HttpServlet
      Throws:
      IOException
      javax.servlet.ServletException
    • getI18nData

      protected I18nServlet.I18nData getI18nData(javax.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(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, I18nServlet.I18nData i18nData)