A viewable type referencing a template by name and a model to be passed to the template. Such a type may be returned by a resource method of a resource class. In this respect the template is the view and the controller is the resource class in the Model View Controller pattern.
The template name may be declared as absolute template name if the name begins with a '/', otherwise the template name is declared as a relative template name.
A relative template name requires resolving to an absolute template name when the viewable type is processed.
If a resolving class is present then that class may be used to resolve the relative template name.
If a resolving class is not present and resolving class is not defined by the {@link Template} annotationthen the class of the last matching resource should be utilized as the resolving class.
If there are no matching resources then an {@link org.glassfish.jersey.server.mvc.spi.ViewableContextException error}will result.
{@link org.glassfish.jersey.server.mvc.spi.ViewableContext} is responsible forresolving absolute template name from relative template name.
@author Paul Sandoz (paul.sandoz at oracle.com)
@author Michal Gajdos (michal.gajdos at oracle.com)
@see Template
@see org.glassfish.jersey.server.mvc.spi.ViewableContext
@see org.glassfish.jersey.server.mvc.internal.ResolvingViewableContext