org.jboss.seam.rest.templating.freemarker
Class FreeMarkerProvider

java.lang.Object
  extended by org.jboss.seam.rest.templating.freemarker.FreeMarkerProvider
All Implemented Interfaces:
org.jboss.seam.rest.templating.TemplatingProvider

@ApplicationScoped
public class FreeMarkerProvider
extends Object
implements org.jboss.seam.rest.templating.TemplatingProvider

Converts the response object to a rendered FreeMarker template.

Author:
Jozef Hartinger

Constructor Summary
FreeMarkerProvider()
           
 
Method Summary
 void init(javax.servlet.ServletContext servletContext)
           
 String toString()
           
 void writeTo(Object o, org.jboss.seam.rest.templating.ResponseTemplate annotation, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FreeMarkerProvider

public FreeMarkerProvider()
Method Detail

init

public void init(javax.servlet.ServletContext servletContext)
Specified by:
init in interface org.jboss.seam.rest.templating.TemplatingProvider

writeTo

public void writeTo(Object o,
                    org.jboss.seam.rest.templating.ResponseTemplate annotation,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
                    OutputStream os)
             throws IOException
Specified by:
writeTo in interface org.jboss.seam.rest.templating.TemplatingProvider
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Seam Framework. All Rights Reserved.