com.globo.dnsapi.api
Class RecordAPI

java.lang.Object
  extended by com.globo.dnsapi.AbstractAPI<Record>
      extended by com.globo.dnsapi.api.RecordAPI

public class RecordAPI
extends AbstractAPI<Record>


Constructor Summary
RecordAPI(DNSAPI transport)
           
 
Method Summary
 Record createRecord(Long domainId, String name, String content, String type)
           
 Record getById(Long recordId)
           
protected  Type getListType()
           
protected  Type getType()
           
 List<Record> listAll(Long domainId)
           
 List<Record> listByQuery(Long domainId, String query)
           
 void removeRecord(Long recordId)
           
 void updateRecord(Long recordId, Long domainId, String name, String content)
           
 
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
 

Constructor Detail

RecordAPI

public RecordAPI(DNSAPI transport)
Method Detail

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.