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

java.lang.Object
  extended by com.khubla.pragmatach.framework.controller.impl.AbstractResponse
      extended by com.khubla.pragmatach.framework.controller.impl.template.SimpleTemplateResponse
All Implemented Interfaces:
Response

public class SimpleTemplateResponse
extends AbstractResponse

Author:
tome

Field Summary
 
Fields inherited from class com.khubla.pragmatach.framework.controller.impl.AbstractResponse
CONTENT_TYPE_HTML
 
Constructor Summary
SimpleTemplateResponse(Map<String,String> cacheHeaders, String template, Map<String,String> parameters)
          ctor
 
Method Summary
 String getContentType()
           
 Map<String,String> getHeaders()
           
 void render(javax.servlet.http.HttpServletResponse httpServletResponse)
           
static void template(InputStream templateInputStream, OutputStream outputStream, Map<String,String> substitutions)
           
 
Methods inherited from class com.khubla.pragmatach.framework.controller.impl.AbstractResponse
getCacheHeaders, getHTTPCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTemplateResponse

public SimpleTemplateResponse(Map<String,String> cacheHeaders,
                              String template,
                              Map<String,String> parameters)
ctor

Method Detail

template

public static void template(InputStream templateInputStream,
                            OutputStream outputStream,
                            Map<String,String> substitutions)
                     throws PragmatachException
Throws:
PragmatachException

getContentType

public String getContentType()
                      throws PragmatachException
Throws:
PragmatachException

getHeaders

public Map<String,String> getHeaders()
                              throws PragmatachException
Throws:
PragmatachException

render

public void render(javax.servlet.http.HttpServletResponse httpServletResponse)
            throws PragmatachException
Throws:
PragmatachException


Copyright © 2014 khubla.com. All rights reserved.