org.jboss.seam.rest.templating.velocity
Class VelocityProvider
java.lang.Object
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
VelocityProvider
public VelocityProvider()
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.