public class MailServerResource extends Object
Constructor and Description |
---|
MailServerResource(MailServerController mailServerController) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
saveConfiguration(MailServerConfigurationEntity mailConfiuration)
Saves mail configuration
|
javax.ws.rs.core.Response |
testMailServerConnection(MailServerConfigurationEntity connectionTestData)
Tests connection to the specified SMTP server.
|
javax.ws.rs.core.Response |
validateFields(MailServerConfigurationEntity connectionTestEntity)
Validates fields required in test connection for mail server.
|
public MailServerResource(MailServerController mailServerController)
public javax.ws.rs.core.Response testMailServerConnection(MailServerConfigurationEntity connectionTestData) throws MailSendException, OperationFailedException, javax.mail.internet.AddressException
connectionTestData
- An entity with data required to connect to the serverMailSendException
OperationFailedException
javax.mail.internet.AddressException
public javax.ws.rs.core.Response validateFields(MailServerConfigurationEntity connectionTestEntity) throws ValidationFailedException
connectionTestEntity
- An entity with data required to connect to the serverValidationFailedException
public javax.ws.rs.core.Response saveConfiguration(MailServerConfigurationEntity mailConfiuration) throws ValidationFailedException
mailConfiuration
- An entity with data required to connect to the serverValidationFailedException
Copyright © 2020 Atlassian. All rights reserved.