public class TemplateView extends Object
Constructor and Description |
---|
TemplateView(org.osgi.framework.Bundle bundle,
Object owner,
String name) |
TemplateView(File file) |
TemplateView(Object owner,
File file) |
TemplateView(Object owner,
String name) |
TemplateView(Object owner,
URL url) |
TemplateView(String name) |
TemplateView(URL url) |
Modifier and Type | Method and Description |
---|---|
TemplateView |
arg(String key,
Object value) |
TemplateView |
forObject(Object owner) |
Object |
getOwner() |
URL |
getUrl() |
void |
render(OutputStream out) |
void |
render(Writer writer) |
static URL |
resolveFile(File file) |
static URL |
resolveResource(Object owner,
String name) |
static URL |
resolveResourceFromBundle(org.osgi.framework.Bundle bundle,
String name) |
public TemplateView(String name)
public TemplateView(File file)
public TemplateView(URL url)
public static URL resolveFile(File file) throws ViewNotFoundException
ViewNotFoundException
public static URL resolveResource(Object owner, String name) throws ViewNotFoundException
ViewNotFoundException
public static URL resolveResourceFromBundle(org.osgi.framework.Bundle bundle, String name) throws ViewNotFoundException
ViewNotFoundException
public TemplateView forObject(Object owner)
public URL getUrl()
public Object getOwner()
public TemplateView arg(String key, Object value)
public void render(Writer writer) throws RenderingException, IOException
RenderingException
IOException
public void render(OutputStream out) throws RenderingException, IOException
RenderingException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.