fr.paris.lutece.plugins.contact.web
Class ContactApp

java.lang.Object
  extended by fr.paris.lutece.plugins.contact.web.ContactApp
All Implemented Interfaces:
fr.paris.lutece.portal.web.xpages.XPageApplication

public class ContactApp
extends java.lang.Object
implements fr.paris.lutece.portal.web.xpages.XPageApplication

This class manages Contact page.


Constructor Summary
ContactApp()
           
 
Method Summary
 java.lang.String doSendMessage(javax.servlet.http.HttpServletRequest request)
          This method tests the parameters stored in the request and send the message if they are corrects.
 fr.paris.lutece.portal.web.xpages.XPage getPage(javax.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the content of the page Contact.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContactApp

public ContactApp()
Method Detail

getPage

public fr.paris.lutece.portal.web.xpages.XPage getPage(javax.servlet.http.HttpServletRequest request,
                                                       int nMode,
                                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the content of the page Contact. It is composed by a form which to capture the data to send a message to a contact of the portal.

Specified by:
getPage in interface fr.paris.lutece.portal.web.xpages.XPageApplication
Parameters:
request - The http request
nMode - The current mode
plugin - The plugin object
Returns:
the Content of the page Contact

doSendMessage

public java.lang.String doSendMessage(javax.servlet.http.HttpServletRequest request)
This method tests the parameters stored in the request and send the message if they are corrects. Otherwise, it displays an error message.

Parameters:
request - The http request
Returns:
The result of the process of the sending message.


Copyright © 2007 Mairie de Paris. All Rights Reserved.