com.khubla.pragmatach.framework.controller.impl.template
Class AbstractTemplateEngineController

java.lang.Object
  extended by com.khubla.pragmatach.framework.controller.impl.AbstractController
      extended by com.khubla.pragmatach.framework.controller.impl.template.AbstractTemplateEngineController
All Implemented Interfaces:
PragmatachController
Direct Known Subclasses:
FormPostBeanBoundController, JasperController, JCRController, JSPController

public class AbstractTemplateEngineController
extends AbstractController

Author:
tome

Constructor Summary
AbstractTemplateEngineController()
           
 
Method Summary
protected  String getTemplate()
          get the Template
protected  Map<String,Object> getTemplateContext()
          get the template's context
protected  String getTemplateName()
          Get the name of the template to render from the @View annotation.
 String url_for(String page)
          get properly qualified url given the http, the context, etc
 
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
 

Constructor Detail

AbstractTemplateEngineController

public AbstractTemplateEngineController()
Method Detail

getTemplate

protected String getTemplate()
                      throws PragmatachException
get the Template

Throws:
PragmatachException

getTemplateContext

protected Map<String,Object> getTemplateContext()
get the template's context


getTemplateName

protected String getTemplateName()
                          throws PragmatachException
Get the name of the template to render from the @View annotation.

Throws:
PragmatachException

url_for

public String url_for(String page)
               throws PragmatachException
get properly qualified url given the http, the context, etc

Throws:
PragmatachException


Copyright © 2014 khubla.com. All rights reserved.