fr.cnes.sitools.mail
Class MailAdministration
java.lang.Object
ExtendedWadlApplication
fr.cnes.sitools.common.application.SitoolsApplication
fr.cnes.sitools.mail.MailAdministration
public final class MailAdministration
- extends SitoolsApplication
Application for managing mails (sending / receiving)
Aims at :
0. Sending mail service according to sitools.properties
1. Administrator must be able to configure the mail settings (protocol, server) with
the administration GUI, and enable/disable this service. SMTP/SMTPS : the key file SSL must be present on the server.
2. Administrator must be able to configure and manage the mail income for an applicative
mail account (POP/POPS) : the key file SSL must be present on the server.
- Author:
- jp.boignard (AKKA Technologies)
- See Also:
org.restlet.test.engine.JavaMailTestCase.java
Constructor Summary |
MailAdministration(org.restlet.Context context,
org.restlet.Component server)
Constructor |
Method Summary |
org.restlet.Restlet |
createInboundRoot()
|
org.restlet.ext.wadl.ApplicationInfo |
getApplicationInfo(org.restlet.Request request,
org.restlet.Response response)
|
void |
setupMailClient(org.restlet.data.Protocol protocol,
java.lang.String server,
boolean debug,
boolean startTls)
Enregistrement d'un client pour le serveur / protocole mail en question avec / sans SSL |
void |
sitoolsDescribe()
Abstract method for thinking about implementing it for each concrete application describe is the RESTlet method,
but overriding, prevents the self-describing functionality. |
Methods inherited from class fr.cnes.sitools.common.application.SitoolsApplication |
addSecurity, addSecurity, addSecurityFilter, defaultDescribe, getAttachementRef, getAuthenticationRealm, getAuthorizer, getAuthorizer, getAuthorizer, getCategory, getId, getPublicBaseRef, getRepresentationInfoReferences, getSecure, getSettings, getSitoolsApplicationInfo, getType, getUserAuthorizer, isAuthorizationSecure, isUserAuthenticationNeeded, register, setAutoRegistration, setCategory, setId, setSitoolsApplicationInfo, setType, setUserAuthenticationNeeded, start, stop, unregister, wrapToResource |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailAdministration
public MailAdministration(org.restlet.Context context,
org.restlet.Component server)
- Constructor
- Parameters:
context
- RESTlet contextserver
- the server component
sitoolsDescribe
public void sitoolsDescribe()
- Description copied from class:
SitoolsApplication
- Abstract method for thinking about implementing it for each concrete application describe is the RESTlet method,
but overriding, prevents the self-describing functionality.
- Specified by:
sitoolsDescribe
in class SitoolsApplication
createInboundRoot
public org.restlet.Restlet createInboundRoot()
setupMailClient
public void setupMailClient(org.restlet.data.Protocol protocol,
java.lang.String server,
boolean debug,
boolean startTls)
throws java.lang.Exception
- Enregistrement d'un client pour le serveur / protocole mail en question avec / sans SSL
- Parameters:
protocol
- protocol usedserver
- the server useddebug
- debug mode on/offstartTls
- starts TLS
- Throws:
java.lang.Exception
- if setup fails
getApplicationInfo
public org.restlet.ext.wadl.ApplicationInfo getApplicationInfo(org.restlet.Request request,
org.restlet.Response response)
- Overrides:
getApplicationInfo
in class SitoolsApplication
Copyright © 2010-2013 CNES. All Rights Reserved.