public class EmailResource extends AbstractJaxRSResource
acceptableMediaTypes, httpServletRequest, httpServletResponse, TEXT_HTML
Constructor and Description |
---|
EmailResource()
Constructs an instance of this class using the default email service
|
EmailResource(IEmailService emailService)
Constructs an instance of this class using the default email service
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteEmailConfig(EmailConfiguration emailConfiguration)
Delete the stored email configuration from the platform.
|
IEmailConfiguration |
getEmailConfig()
Retrieves the email configuration
|
javax.ws.rs.core.Response |
isValid()
Checks whether the current email configuration is valid
|
javax.ws.rs.core.Response |
sendEmailTest(EmailConfiguration emailConfiguration)
Process the current email configuration
|
javax.ws.rs.core.Response |
setEmailConfig(EmailConfiguration emailConfiguration)
Stores the email configuration in the platform
|
setHttpHeaders
public EmailResource() throws IllegalArgumentException
IllegalArgumentException
- Indicates that the default location for the email configuration file is invalidpublic EmailResource(IEmailService emailService) throws IllegalArgumentException
IllegalArgumentException
- Indicates that the default location for the email configuration file is invalidpublic javax.ws.rs.core.Response deleteEmailConfig(EmailConfiguration emailConfiguration)
emailConfiguration
- EmailConfiguration
public javax.ws.rs.core.Response setEmailConfig(EmailConfiguration emailConfiguration)
emailConfiguration
- EmailConfiguration
public IEmailConfiguration getEmailConfig()
EmailConfiguration
public javax.ws.rs.core.Response sendEmailTest(EmailConfiguration emailConfiguration) throws Exception
emailConfiguration
- EmailConfiguration
Exception
public javax.ws.rs.core.Response isValid()
Copyright © 2017 Hitachi Vantara. All rights reserved.