|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.mvc.Viewable
org.glassfish.jersey.server.mvc.spi.ResolvedViewable<T>
T - the type of the resolved template object.public final class ResolvedViewable<T>
A resolved viewable.
ViewableContext
and has associated with it a TemplateProcessor that is capable of processing a template identified by a template
reference.
| Constructor Summary | |
|---|---|
ResolvedViewable(TemplateProcessor<T> viewProcessor,
T templateReference,
Viewable viewable,
java.lang.Class<?> resolvingClass,
MediaType mediaType)
Create a resolved viewable. |
|
ResolvedViewable(TemplateProcessor<T> viewProcessor,
T templateReference,
Viewable viewable,
MediaType mediaType)
Create a resolved viewable. |
|
| Method Summary | |
|---|---|
MediaType |
getMediaType()
Get the media type for which the view processor resolved the template reference. |
void |
writeTo(java.io.OutputStream out)
Write the resolved viewable. |
| Methods inherited from class org.glassfish.jersey.server.mvc.Viewable |
|---|
getModel, getResolvingClass, getTemplateName, isTemplateNameAbsolute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResolvedViewable(TemplateProcessor<T> viewProcessor,
T templateReference,
Viewable viewable,
MediaType mediaType)
viewProcessor - the view processor that resolved a template name to a template reference.templateReference - the template reference.viewable - the viewable that is resolved.mediaType - media type the templateReference should be transformed into.
public ResolvedViewable(TemplateProcessor<T> viewProcessor,
T templateReference,
Viewable viewable,
java.lang.Class<?> resolvingClass,
MediaType mediaType)
viewProcessor - the view processor that resolved a template name to a template reference.templateReference - the template reference.viewable - the viewable that is resolved.resolvingClass - the resolving class that was used to resolve a relative template name into an absolute template name.mediaType - media type the templateReference should be transformed into.| Method Detail |
|---|
public void writeTo(java.io.OutputStream out)
throws java.io.IOException
TemplateProcessor.writeTo(Object, org.glassfish.jersey.server.mvc.Viewable,
javax.ws.rs.core.MediaType, java.io.OutputStream) to write the viewable utilizing the template reference.
out - the output stream that the view processor writes to.
java.io.IOException - if there was an error processing the template.public MediaType getMediaType()
view processor resolved the template reference.
media type of the resolved viewable.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||