Class SiteMessageHandler

java.lang.Object
fr.paris.lutece.portal.service.message.SiteMessageHandler
All Implemented Interfaces:
ISiteMessageHandler

@ApplicationScoped public class SiteMessageHandler extends Object implements ISiteMessageHandler
Site message pages provider service.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getPage(jakarta.servlet.http.HttpServletRequest request, int nMode)
    Returns the content of a page that display the message
    boolean
    hasMessage(jakarta.servlet.http.HttpServletRequest request)
    Analyzes request parameters to see if the request should be handled

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SiteMessageHandler

      public SiteMessageHandler()
  • Method Details

    • hasMessage

      public boolean hasMessage(jakarta.servlet.http.HttpServletRequest request)
      Analyzes request parameters to see if the request should be handled
      Specified by:
      hasMessage in interface ISiteMessageHandler
      Parameters:
      request - The HTTP request
      Returns:
      true if it should handle this request
    • getPage

      public String getPage(jakarta.servlet.http.HttpServletRequest request, int nMode)
      Returns the content of a page that display the message
      Specified by:
      getPage in interface ISiteMessageHandler
      Parameters:
      request - The http request
      nMode - The mode
      Returns:
      the html code for the display of a page of a site