T - the type of the resolved template object.public class ResolvedViewable<T> extends Viewable
Viewable.
A resolved viewable is obtained from the resolving methods on
TemplateContext and has associated with it a ViewProcessor
that is capable of processing a template identified by a template reference.
| Constructor and Description |
|---|
ResolvedViewable(ViewProcessor<T> vp,
T t,
Viewable v)
Create a resolved viewable.
|
ResolvedViewable(ViewProcessor<T> vp,
T t,
Viewable v,
java.lang.Class<?> resolvingClass)
Create a resolved viewable.
|
| Modifier and Type | Method and Description |
|---|---|
void |
writeTo(java.io.OutputStream out)
Write the resolved viewable.
|
getModel, getResolvingClass, getTemplateName, isTemplateNameAbsolutepublic ResolvedViewable(ViewProcessor<T> vp, T t, Viewable v)
vp - the view processor that resolved a template name to a template
reference.t - the template reference.v - the viewable that is resolved.public ResolvedViewable(ViewProcessor<T> vp, T t, Viewable v, java.lang.Class<?> resolvingClass)
vp - the view processor that resolved a template name to a template
reference.t - the template reference.v - the viewable that is resolved.resolvingClass - the resolving class that was used to resolve a
relative template name into an absolute template name.public void writeTo(java.io.OutputStream out)
throws java.io.IOException
This method defers to ViewProcessor.writeTo(java.lang.Object, com.sun.jersey.api.view.Viewable, java.io.OutputStream)
to write the viewable utilizing the template reference.
out - the output stream that the view processor writes to.java.io.IOExceptionCopyright © 2016 Oracle Corporation. All Rights Reserved.