com.globo.dnsapi.api
Class DomainAPI
java.lang.Object
com.globo.dnsapi.AbstractAPI<Domain>
com.globo.dnsapi.api.DomainAPI
public class DomainAPI
- extends AbstractAPI<Domain>
|
Method Summary |
Domain |
createDomain(String name,
Long templateId,
String authorityType)
|
Domain |
createReverseDomain(String name,
Long templateId,
String authorityType)
|
Domain |
getById(Long domainId)
|
protected Type |
getListType()
|
Domain |
getReverseById(Long domainId)
|
protected Type |
getType()
|
List<Domain> |
listAll()
|
List<Domain> |
listAllReverse()
|
List<Domain> |
listByQuery(String query)
|
List<Domain> |
listReverseByQuery(String query)
|
void |
removeDomain(Long domainId)
|
void |
removeReverseDomain(Long domainId)
|
void |
updateDomain(Long domainId,
String name,
String authorityType,
String ttl)
|
void |
updateReverseDomain(Long domainId,
String name,
String authorityType,
String ttl)
|
| Methods inherited from class com.globo.dnsapi.AbstractAPI |
buildHttpRequestFactory, buildUrl, delete, get, getDnsapi, handleExceptionIfNeeded, insertAuthenticationHeaders, interceptRequest, interceptResponse, parse, parse, post, put |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DomainAPI
public DomainAPI(DNSAPI transport)
getType
protected Type getType()
- Specified by:
getType in class AbstractAPI<Domain>
getListType
protected Type getListType()
- Specified by:
getListType in class AbstractAPI<Domain>
createDomain
public Domain createDomain(String name,
Long templateId,
String authorityType)
throws DNSAPIException
- Throws:
DNSAPIException
listAll
public List<Domain> listAll()
throws DNSAPIException
- Throws:
DNSAPIException
listByQuery
public List<Domain> listByQuery(String query)
throws DNSAPIException
- Throws:
DNSAPIException
getById
public Domain getById(Long domainId)
throws DNSAPIException
- Throws:
DNSAPIException
updateDomain
public void updateDomain(Long domainId,
String name,
String authorityType,
String ttl)
throws DNSAPIException
- Throws:
DNSAPIException
removeDomain
public void removeDomain(Long domainId)
throws DNSAPIException
- Throws:
DNSAPIException
createReverseDomain
public Domain createReverseDomain(String name,
Long templateId,
String authorityType)
throws DNSAPIException
- Throws:
DNSAPIException
listAllReverse
public List<Domain> listAllReverse()
throws DNSAPIException
- Throws:
DNSAPIException
listReverseByQuery
public List<Domain> listReverseByQuery(String query)
throws DNSAPIException
- Throws:
DNSAPIException
getReverseById
public Domain getReverseById(Long domainId)
throws DNSAPIException
- Throws:
DNSAPIException
updateReverseDomain
public void updateReverseDomain(Long domainId,
String name,
String authorityType,
String ttl)
throws DNSAPIException
- Throws:
DNSAPIException
removeReverseDomain
public void removeReverseDomain(Long domainId)
throws DNSAPIException
- Throws:
DNSAPIException
Copyright © 2014. All rights reserved.