fr.paris.lutece.plugins.contact.web
Class ContactApp
java.lang.Object
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.
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 |
ContactApp
public ContactApp()
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)
throws fr.paris.lutece.portal.service.message.SiteMessageException
- 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 requestnMode
- The current modeplugin
- The plugin object
- Returns:
- the Content of the page Contact
- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException
- Message displayed if an exception occures
doSendMessage
public java.lang.String doSendMessage(javax.servlet.http.HttpServletRequest request)
throws fr.paris.lutece.portal.service.message.SiteMessageException
- 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.
- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException
- Message displayed if an exception occures
Copyright © 2009 Mairie de Paris. All Rights Reserved.