com.khubla.pragmatach.plugin.google
Class GoogleLoginController

java.lang.Object
  extended by com.khubla.pragmatach.framework.controller.impl.AbstractController
      extended by com.khubla.pragmatach.framework.controller.impl.template.AbstractTemplateEngineController
          extended by com.khubla.pragmatach.framework.controller.impl.FormPostBeanBoundController
              extended by com.khubla.pragmatach.plugin.freemarker.FreemarkerController
                  extended by com.khubla.pragmatach.plugin.google.GoogleLoginController
All Implemented Interfaces:
BeanBoundController, PragmatachController
Direct Known Subclasses:
IndexController

public class GoogleLoginController
extends FreemarkerController

Author:
tome

https://developers.google.com/accounts/docs/OAuth2WebServer


Constructor Summary
GoogleLoginController(String redirectURL)
          ctor
 
Method Summary
 Response doLogin()
           
 String getAccessToken()
           
 String getClientid()
           
 String getClientsecret()
           
 String getCode()
           
 String getEmail()
           
 String getFamily_name()
           
 String getGiven_name()
           
 String getGoogleAuthURL()
          get the auth URL to POST to
 String getId()
           
 String getName()
           
 String getRedirectURL()
           
 String getState()
           
 void setAccessToken(String accessToken)
           
 void setClientid(String clientid)
           
 void setClientsecret(String clientsecret)
           
 void setCode(String code)
           
 void setEmail(String email)
           
 void setFamily_name(String family_name)
           
 void setGiven_name(String given_name)
           
 void setId(String id)
           
 void setName(String name)
           
 void setState(String state)
           
 
Methods inherited from class com.khubla.pragmatach.plugin.freemarker.FreemarkerController
render, renderTemplate
 
Methods inherited from class com.khubla.pragmatach.framework.controller.impl.FormPostBeanBoundController
getPostFieldValues, populateController
 
Methods inherited from class com.khubla.pragmatach.framework.controller.impl.template.AbstractTemplateEngineController
getTemplate, getTemplateContext, getTemplateName, url_for
 
Methods inherited from class com.khubla.pragmatach.framework.controller.impl.AbstractController
bad, buildWildcardResourceURI, forward, getApplicationURL, getCacheHeaders, getConfigurationParameter, getControllerName, getControllerName, getPragmatachRoute, getRequest, getResource, getSessionScopedController, ok, redirect, setPragmatachRoute, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.khubla.pragmatach.framework.controller.PragmatachController
setPragmatachRoute, setRequest
 

Constructor Detail

GoogleLoginController

public GoogleLoginController(String redirectURL)
                      throws PragmatachException
ctor

Throws:
PragmatachException
Method Detail

doLogin

public Response doLogin()
                 throws PragmatachException
Throws:
PragmatachException

getAccessToken

public String getAccessToken()

getClientid

public String getClientid()

getClientsecret

public String getClientsecret()

getCode

public String getCode()

getEmail

public String getEmail()

getFamily_name

public String getFamily_name()

getGiven_name

public String getGiven_name()

getGoogleAuthURL

public String getGoogleAuthURL()
get the auth URL to POST to


getId

public String getId()

getName

public String getName()

getRedirectURL

public String getRedirectURL()

getState

public String getState()

setAccessToken

public void setAccessToken(String accessToken)

setClientid

public void setClientid(String clientid)

setClientsecret

public void setClientsecret(String clientsecret)

setCode

public void setCode(String code)

setEmail

public void setEmail(String email)

setFamily_name

public void setFamily_name(String family_name)

setGiven_name

public void setGiven_name(String given_name)

setId

public void setId(String id)

setName

public void setName(String name)

setState

public void setState(String state)


Copyright © 2014 khubla.com. All rights reserved.