A viewable type referencing a template by name and a model to be passed to the template.
Used to annotate JAX-RS resources and resource methods to provide reference to an error template if an exception has been raised during processing a request (resource method invocation).
Used to annotate JAX-RS resources and resource methods to provide reference to a template for MVC support.
Viewablethat encapsulates the template name and the model. In this respect the instance of
Viewableis the response entity. Such a viewable response entity may be set in contexts other than a resource method but for the purposes of this section the focus is on resource methods. The
Viewable, returned by a resource method, will be processed such that the template name is resolved to a template reference that identifies a template capable of being processed by an appropriate view processor.
Viewableinstances are supported: explicit; and implicit.
Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.