|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.config.resources.ProtectedResource
org.nhindirect.config.resources.DNSResource
@Component public class DNSResource
JAX-RS resource for managing DNS resources in the configuration service.
Although not required, this class is instantiated using the Jersey SpringServlet and dependencies are defined in the Sprint context XML file.
| Constructor Summary | |
|---|---|
DNSResource()
Constructor |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DNSResource()
| Method Detail |
|---|
@Autowired public void setDNSDao(org.nhindirect.config.store.dao.DNSDao dnsDao)
dnsDao - DNS Dao
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||