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(org.pentaho.platform.api.email.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()
Delete the stored email configuration from the platform.
|
org.pentaho.platform.api.email.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(org.pentaho.platform.api.email.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
public javax.ws.rs.core.Response setEmailConfig(EmailConfiguration emailConfiguration)
emailConfiguration
- EmailConfiguration
public org.pentaho.platform.api.email.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 © 2021 Hitachi Vantara. All rights reserved.