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

@Controller(name="IndexController")
@View(view="index.vtl")
public class IndexController
extends VelocityController


Constructor Summary
IndexController()
           
 
Method Summary
 String getMessage()
           
 int getSum()
           
 String getTime()
           
 Response render()
          render
 Response render(int number)
           
 void setSum(int sum)
           
 
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()
Method Detail

getMessage

public String getMessage()

getSum

public int getSum()

getTime

public String getTime()

render

@Route(uri="/")
public Response render()
                throws PragmatachException
Description copied from class: VelocityController
render

Overrides:
render in class VelocityController
Throws:
PragmatachException

render

@Route(uri="/@num")
public Response render(@RouteParameter(name="num")
                                int number)
                throws PragmatachException
Throws:
PragmatachException

setSum

public void setSum(int sum)


Copyright © 2014 khubla.com. All rights reserved.