org.jboss.seam.rest.templating.velocity
Class VelocityProvider

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

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

Renders response using Apache Velocity.

Author:
Jozef Hartinger

Constructor Summary
VelocityProvider()
           
 
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

VelocityProvider

public VelocityProvider()
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.