org.restlet.ext.velocity
Class TemplateFilter
java.lang.Object
org.restlet.Uniform
org.restlet.Restlet
org.restlet.Filter
org.restlet.ext.velocity.TemplateFilter
public class TemplateFilter
- extends Filter
Filter response's entity and wrap it with a Velocity's template
representation.
By default, the template representation provides a data model based on the
request and response objects.
Concurrency note: instances of this class or its subclasses can be invoked by
several threads at the same time and therefore must be thread-safe. You
should be especially careful when storing state in member variables.
- Author:
- Thierry Boileau
Methods inherited from class org.restlet.Uniform |
delete, delete, get, get, handle, head, head, options, options, post, post, put, put |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateFilter
public TemplateFilter()
- Constructor.
TemplateFilter
public TemplateFilter(Context context)
- Constructor.
- Parameters:
context
- The context.
TemplateFilter
public TemplateFilter(Context context,
Restlet next)
- Constructor.
- Parameters:
context
- The context.next
- The next Restlet.
TemplateFilter
public TemplateFilter(Context context,
Restlet next,
java.util.Map<java.lang.String,java.lang.Object> dataModel)
- Constructor.
- Parameters:
context
- The context.next
- The next Restlet.dataModel
- The filter's data model.
TemplateFilter
public TemplateFilter(Context context,
Restlet next,
Resolver<java.lang.Object> dataModel)
- Constructor.
- Parameters:
context
- The context.next
- The next Restlet.dataModel
- The filter's data model.
afterHandle
protected void afterHandle(Request request,
Response response)
- Overrides:
afterHandle
in class Filter
Copyright © 2005-2008 Noelios Technologies.