com.khubla.pragmatach.examples.routesexample
Class ExampleRoutesController1

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.examples.routesexample.ExampleRoutesController1
All Implemented Interfaces:
BeanBoundController, PragmatachController

@Controller(name="ExampleRoutesController1")
@View(view="exampleRoutesController1.ftl")
public class ExampleRoutesController1
extends FreemarkerController


Constructor Summary
ExampleRoutesController1()
           
 
Method Summary
 String getMessage()
           
 int getSum()
           
 Response render(int number1, int number2, String message)
           
 void setSum(int sum)
           
 
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

ExampleRoutesController1

public ExampleRoutesController1()
Method Detail

getMessage

public String getMessage()

getSum

public int getSum()

render

@Route(uri="/exampleRoutesController1/@num1/@num2/@message")
public Response render(@RouteParameter(name="num1")
                                int number1,
                                @RouteParameter(name="num2")
                                int number2,
                                @RouteParameter(name="message")
                                String message)
                throws PragmatachException
Throws:
PragmatachException

setSum

public void setSum(int sum)


Copyright © 2014 khubla.com. All rights reserved.