public class MailConfigurationResource extends Object
Constructor and Description |
---|
MailConfigurationResource(MailConfigurationService mailConfigurationService,
MailConfigurationConversionFunction function) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteMailConfiguration()
Rest endpoint to delete current mail configuration
|
javax.ws.rs.core.Response |
getMailConfiguration(Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
The REST endpoint to retrieve the current mail server configuration
|
javax.ws.rs.core.Response |
updateMailConfiguration(RestMailConfiguration restMailConfiguration,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
The Rest endpoint to update the mail server configuration
|
public MailConfigurationResource(MailConfigurationService mailConfigurationService, MailConfigurationConversionFunction function)
public javax.ws.rs.core.Response getMailConfiguration(@NotNull @Context Expansion expansion, @NotNull @Context javax.ws.rs.core.UriInfo uriInfo) throws UnauthorisedException, NotFoundException
Response
UnauthorisedException
NotFoundException
public javax.ws.rs.core.Response updateMailConfiguration(RestMailConfiguration restMailConfiguration, @NotNull @Context Expansion expansion, @NotNull @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException, UnauthorisedException
restMailConfiguration
- expansion
- uriInfo
- Response
WebValidationException
UnauthorisedException
public javax.ws.rs.core.Response deleteMailConfiguration() throws UnauthorisedException, NotFoundException, com.atlassian.mail.MailException
Response
NotFoundException
com.atlassian.mail.MailException
UnauthorisedException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.