com.globo.dnsapi.api
Class RecordAPI
java.lang.Object
com.globo.dnsapi.AbstractAPI<Record>
com.globo.dnsapi.api.RecordAPI
public class RecordAPI
- extends AbstractAPI<Record>
| 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 |
RecordAPI
public RecordAPI(DNSAPI transport)
getType
protected Type getType()
- Specified by:
getType in class AbstractAPI<Record>
getListType
protected Type getListType()
- Specified by:
getListType in class AbstractAPI<Record>
createRecord
public Record createRecord(Long domainId,
String name,
String content,
String type)
throws DNSAPIException
- Throws:
DNSAPIException
listAll
public List<Record> listAll(Long domainId)
throws DNSAPIException
- Throws:
DNSAPIException
listByQuery
public List<Record> listByQuery(Long domainId,
String query)
throws DNSAPIException
- Throws:
DNSAPIException
getById
public Record getById(Long recordId)
throws DNSAPIException
- Throws:
DNSAPIException
updateRecord
public void updateRecord(Long recordId,
Long domainId,
String name,
String content)
throws DNSAPIException
- Throws:
DNSAPIException
removeRecord
public void removeRecord(Long recordId)
throws DNSAPIException
- Throws:
DNSAPIException
Copyright © 2014. All rights reserved.