com.khubla.pragmatach.examples.googleexample
Class IndexController

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
                      extended by com.khubla.pragmatach.examples.googleexample.IndexController
All Implemented Interfaces:
BeanBoundController, PragmatachController

@Controller(name="IndexController")
@View(view="index.html")
public class IndexController
extends GoogleLoginController


Constructor Summary
IndexController()
          ctor
 
Method Summary
 Response doLogin()
          the FB callback
 Response render()
          the main view
 
Methods inherited from class com.khubla.pragmatach.plugin.google.GoogleLoginController
getAccessToken, getClientid, getClientsecret, getCode, getEmail, getFamily_name, getGiven_name, getGoogleAuthURL, getId, getName, getRedirectURL, getState, setAccessToken, setClientid, setClientsecret, setCode, setEmail, setFamily_name, setGiven_name, setId, setName, setState
 
Methods inherited from class com.khubla.pragmatach.plugin.freemarker.FreemarkerController
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

IndexController

public IndexController()
                throws PragmatachException
ctor

Throws:
PragmatachException
Method Detail

doLogin

@Route(uri="plugins/google/dologin/",
       method=get)
public Response doLogin()
                 throws PragmatachException
the FB callback

Overrides:
doLogin in class GoogleLoginController
Throws:
PragmatachException

render

@Route(uri="/")
public Response render()
                throws PragmatachException
the main view

Overrides:
render in class FreemarkerController
Throws:
PragmatachException


Copyright © 2014 khubla.com. All rights reserved.