@Component public class DNSResource extends ProtectedResource
Although not required, this class is instantiated using the Jersey SpringServlet and dependencies are defined in the Sprint context XML file.
| Constructor and Description |
|---|
DNSResource()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addDNSRecord(javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.DNSRecord record)
Adds a DNS record.
|
javax.ws.rs.core.Response |
getDNSRecords(int type,
String name)
Gets DNS records that match a given name, type, or combination of both.
|
javax.ws.rs.core.Response |
removeDNSRecordsByIds(String ids)
Delete DNS records by system id.
|
void |
setDNSDao(org.nhindirect.config.store.dao.DNSDao dnsDao)
Sets the DNS Dao.
|
javax.ws.rs.core.Response |
updateDNSRecord(org.nhindirect.config.model.DNSRecord updateRecord)
Updates the attributes of an existing DNS record.
|
@Autowired public void setDNSDao(org.nhindirect.config.store.dao.DNSDao dnsDao)
dnsDao - DNS Daopublic javax.ws.rs.core.Response getDNSRecords(int type,
String name)
type - DNS record type filter. Defaults to -1 which means no filter will be applied.name - DNS record name filter. Defaults to an empty string which means no filter will be applied.public javax.ws.rs.core.Response addDNSRecord(@Context
javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.DNSRecord record)
uriInfo - Injected URI context used for building the location URI.record - The DNS record to add.public javax.ws.rs.core.Response updateDNSRecord(org.nhindirect.config.model.DNSRecord updateRecord)
updateRecord - The DNS record to update.public javax.ws.rs.core.Response removeDNSRecordsByIds(String ids)
ids - Comma delimited list of ids to delete.Copyright © 2015. All Rights Reserved.