|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectExtendedWadlServerResource
fr.cnes.sitools.common.resource.AbstractSitoolsResource
fr.cnes.sitools.common.SitoolsResource
fr.cnes.sitools.mail.MailResource
public final class MailResource
Resource to configure mail management.
| Field Summary |
|---|
| Fields inherited from class fr.cnes.sitools.common.SitoolsResource |
|---|
DEFAULT_MEDIATYPE |
| Constructor Summary | |
|---|---|
MailResource()
|
|
| Method Summary | |
|---|---|
void |
describePost(org.restlet.ext.wadl.MethodInfo info)
|
void |
doInit()
Initiate the resource |
Mail |
getObject(org.restlet.representation.Representation representation,
org.restlet.representation.Variant variant)
Get the mail from representation |
org.restlet.representation.Representation |
getRepresentation(Response response,
org.restlet.data.MediaType media)
Response to Representation |
org.restlet.representation.Representation |
sendMail(org.restlet.representation.Representation representation,
org.restlet.representation.Variant variant)
Envoi Mail |
void |
sendMailAsynchrone(org.restlet.Context context,
org.restlet.Request request)
Send mail in asynchronous mode |
void |
sitoolsDescribe()
Method implementation mandatory |
| Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource |
|---|
getMediaType |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailResource()
| Method Detail |
|---|
public void doInit()
SitoolsResource
public void sitoolsDescribe()
AbstractSitoolsResource
sitoolsDescribe in class AbstractSitoolsResource
@Post
public org.restlet.representation.Representation sendMail(org.restlet.representation.Representation representation,
org.restlet.representation.Variant variant)
representation - representation XML / JSON of a Mail objectvariant - XML / JSON for response
public void describePost(org.restlet.ext.wadl.MethodInfo info)
public Mail getObject(org.restlet.representation.Representation representation,
org.restlet.representation.Variant variant)
representation - Request entityvariant - the variant used
public org.restlet.representation.Representation getRepresentation(Response response,
org.restlet.data.MediaType media)
getRepresentation in class SitoolsResourceresponse - the response to transformmedia - the media type
public void sendMailAsynchrone(org.restlet.Context context,
org.restlet.Request request)
context - Contextrequest - prepared request to mail server
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||