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