Class TemplateView
- java.lang.Object
-
- org.nuxeo.ecm.webengine.jaxrs.views.TemplateView
-
public class TemplateView extends Object
Template for compatibility with Nuxeo WebEngine- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description TemplateView(File file)
TemplateView(Object owner, File file)
TemplateView(Object owner, String name)
TemplateView(Object owner, URL url)
TemplateView(String name)
TemplateView(URL url)
TemplateView(org.osgi.framework.Bundle bundle, Object owner, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
resolveFile
public static URL resolveFile(File file) throws ViewNotFoundException
- Throws:
ViewNotFoundException
-
resolveResource
public static URL resolveResource(Object owner, String name) throws ViewNotFoundException
- Throws:
ViewNotFoundException
-
resolveResourceFromBundle
public static URL resolveResourceFromBundle(org.osgi.framework.Bundle bundle, String name) throws ViewNotFoundException
- Throws:
ViewNotFoundException
-
forObject
public TemplateView forObject(Object owner)
-
getUrl
public URL getUrl()
-
getOwner
public Object getOwner()
-
arg
public TemplateView arg(String key, Object value)
-
render
public void render(Writer writer) throws RenderingException, IOException
- Throws:
RenderingException
IOException
-
render
public void render(OutputStream out) throws RenderingException, IOException
- Throws:
RenderingException
IOException
-
-