com.globo.dnsapi.api
Class AuthAPI

java.lang.Object
  extended by com.globo.dnsapi.AbstractAPI<Authentication>
      extended by com.globo.dnsapi.api.AuthAPI

public class AuthAPI
extends AbstractAPI<Authentication>


Constructor Summary
AuthAPI(DNSAPI transport)
           
 
Method Summary
protected  Type getListType()
           
protected  Type getType()
           
protected  void interceptRequest(com.google.api.client.http.HttpRequest request)
          Run before each request runs.
 Authentication signIn(String email, String password)
           
 
Methods inherited from class com.globo.dnsapi.AbstractAPI
buildHttpRequestFactory, buildUrl, delete, get, getDnsapi, handleExceptionIfNeeded, insertAuthenticationHeaders, 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

AuthAPI

public AuthAPI(DNSAPI transport)
Method Detail

getType

protected Type getType()
Specified by:
getType in class AbstractAPI<Authentication>

getListType

protected Type getListType()
Specified by:
getListType in class AbstractAPI<Authentication>

interceptRequest

protected void interceptRequest(com.google.api.client.http.HttpRequest request)
Description copied from class: AbstractAPI
Run before each request runs.

Overrides:
interceptRequest in class AbstractAPI<Authentication>

signIn

public Authentication signIn(String email,
                             String password)
                      throws DNSAPIException
Throws:
DNSAPIException


Copyright © 2014. All rights reserved.