Contextual data used by a jakarta. to process a view.
This includes the view name, the models instance and the request and response
objects from the container, among other data.
jakarta.mvc.engine.ViewEngine
| Modifier and Type | Method and Description |
|---|---|
| public Configuration | |
| public Locale | |
| public MediaType | |
| public Models | |
| public OutputStream | Returns: The output streamThe output stream which should be used to write the result of processing a view. |
| public < The expected type of the HTTP request object T> T | Returns: HTTP request object.The expected type of the HTTP request object. type)Returns the HTTP request object from the container. |
| public ResourceInfo | Returns: the resource info for the current request.Returns the |
| public < The expected type of the HTTP request object T> T | Returns: HTTP response object.The expected type of the HTTP response object. type)Returns the HTTP response object from the container. |
| public MultivaluedMap | Returns: mutable multivalued map of response headers.Get the mutable response headers multivalued map. |
| public UriInfo | Returns: the URI info for the current request.Returns the |
| public String |
| getConfiguration | back to summary |
|---|---|
| public Configuration getConfiguration() Returns the application's configuration. The configuration provides access
to properties such as
| |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Returns the request locale resolved for the current request.
| |
| getMediaType | back to summary |
|---|---|
| public MediaType getMediaType() The media type to use for the response. Please note that
| |
| getModels | back to summary |
|---|---|
| public Models getModels() Returns the models instance needed to process the view.
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() The output stream which should be used to write the result of processing a view.
| |
| getRequest | back to summary |
|---|---|
| public <T> T getRequest(Class<T> type) Returns the HTTP request object from the container. The type of the request object
depends on the environment. In a servlet environment you can use this method to get
the
| |
| getResourceInfo | back to summary |
|---|---|
| public ResourceInfo getResourceInfo() Returns the
| |
| getResponse | back to summary |
|---|---|
| public <T> T getResponse(Class<T> type) Returns the HTTP response object from the container. The type of the response object
depends on the environment. In a servlet environment you can use this method to get
the Please note that you should generally prefer using
| |
| getResponseHeaders | back to summary |
|---|---|
| public MultivaluedMap Get the mutable response headers multivalued map. This map can be modified
to change the HTTP response headers. Please note that changing the map will only have
an effect on the headers if modifications are performed before data is written
to the output stream obtained from
| |
| getUriInfo | back to summary |
|---|---|
| public UriInfo getUriInfo() Returns the
| |
| getView | back to summary |
|---|---|
| public String getView() Returns the view.
| |