public interface ViewEngineContext
Contextual data used by a ViewEngine
to process a view.
This includes the view name, the models instance and the request and response
objects from the Servlet container, among other data.
ViewEngine
,
HttpServletRequest
,
HttpServletResponse
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Configuration |
getConfiguration()
Returns the application's configuration.
|
Models |
getModels()
Returns the models instance needed to process the view.
|
javax.servlet.http.HttpServletRequest |
getRequest()
Returns HTTP request object from the Servlet container.
|
javax.ws.rs.container.ResourceInfo |
getResourceInfo()
Returns the
ResourceInfo instance containing
information about the controller method matched in the current request. |
javax.servlet.http.HttpServletResponse |
getResponse()
Returns HTTP response object from the servlet container.
|
javax.ws.rs.core.UriInfo |
getUriInfo()
Returns the
UriInfo instance containing information
about the current request URI. |
String |
getView()
Returns the view.
|
String getView()
Models getModels()
javax.servlet.http.HttpServletRequest getRequest()
javax.servlet.http.HttpServletResponse getResponse()
javax.ws.rs.core.UriInfo getUriInfo()
UriInfo
instance containing information
about the current request URI.UriInfo
javax.ws.rs.container.ResourceInfo getResourceInfo()
ResourceInfo
instance containing
information about the controller method matched in the current request.ResourceInfo
javax.ws.rs.core.Configuration getConfiguration()
ViewEngine.VIEW_FOLDER
, which
view engines must use to locate views.Configuration
Copyright © 2017 Ivar Grimstad. All rights reserved.