@Contract
@ConstrainedTo(value=SERVER)
public interface ViewableContext
Viewable to an instance of ResolvedViewable.
Note:
resolveViewable(org.glassfish.jersey.server.mvc.Viewable, javax.ws.rs.core.MediaType, Class, TemplateProcessor)
method may be called multiple times (combination of all the calculated possible media types of the response with all found
template processors).| Modifier and Type | Method and Description |
|---|---|
ResolvedViewable |
resolveViewable(Viewable viewable,
javax.ws.rs.core.MediaType mediaType,
Class<?> resolvingClass,
TemplateProcessor templateProcessor)
|
ResolvedViewable resolveViewable(Viewable viewable, javax.ws.rs.core.MediaType mediaType, Class<?> resolvingClass, TemplateProcessor templateProcessor)
viewable using mediaType,
resolvingClass and templateProcessor.
If the template name of the viewable is not absolute then the given resolvingClass may be utilized to resolve
the relative template name into an absolute template name.
resolvingClass contains one of these values (ordered by priority):
Viewable.getResolvingClass()Template.resolvingClass()ResourceInfo.getResourceClass()viewable - viewable to be resolved.mediaType - media type the viewable may be transformed into.resolvingClass - actual resolving class.templateProcessor - template processor to be used.null if the viewable cannot be resolved.Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.