A ResonseStateManager implementation for the default HTML render kit.
| Modifier and Type | Field and Description |
|---|---|
| private StateHelper |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getCryptographicallyStrongTokenFromSession(FacesContext
the context)FacesContext for the current requestOverrides jakarta. Compliant implementations must return a cryptographically strong token for use to protect views in this application. |
| public Object | getState(FacesContext
The context, String FacesContext instance for the current requestView identifier of the view to be restored viewId)Overrides jakarta.
The implementation must inspect the current request and return an Object
representing the tree structure and component state passed in to a previous invocation of
|
| public String | getViewState(FacesContext
the context, Object FacesContext for the current requestthe state from which the String version will be generated from state)Overrides jakarta.
Return the specified state as a |
| public boolean | isPostback(FacesContext
the context)FacesContext for the current request.Overrides jakarta. Return true if the current request is a postback. |
| public boolean | Returns: true if "stateless" was found, false otherwise.the Faces context. facesContext, String the view id. viewId)Overrides jakarta.
If the preceding call to |
| public void | writeState(FacesContext
The context, Object FacesContext instance for the current requestThe serialized state information previously saved state)Overrides jakarta.
Take the argument |
| helper | back to summary |
|---|---|
| private StateHelper helper | |
| ResponseStateManagerImpl | back to summary |
|---|---|
| public ResponseStateManagerImpl() | |
| getCryptographicallyStrongTokenFromSession | back to summary |
|---|---|
| public String getCryptographicallyStrongTokenFromSession(FacesContext context) Overrides jakarta. Doc from jakarta.
Compliant implementations must return a cryptographically strong token for use to protect views in this application.
For backwards compatibility with earlier revisions, a default implementation is provided that simply returns
| |
| getState | back to summary |
|---|---|
| public Object getState(FacesContext context, String viewId) Overrides jakarta. Doc from jakarta.
The implementation must inspect the current request and return an Object
representing the tree structure and component state passed in to a previous invocation of
If the state saving method for this application is
| |
| getViewState | back to summary |
|---|---|
| public String getViewState(FacesContext context, Object state) Overrides jakarta. Doc from jakarta.
Return the specified state as a
| |
| isPostback | back to summary |
|---|---|
| public boolean isPostback(FacesContext context) Overrides jakarta. Doc from jakarta.
Return true if the current request is a postback. This method is leveraged from the Restore View Phase to
determine if
The implementation of this method for the Standard HTML RenderKit must consult the
For backwards compatibility with implementations of
| |
| isStateless | back to summary |
|---|---|
| public boolean isStateless(FacesContext facesContext, String viewId) Overrides jakarta. Doc from jakarta.
If the preceding call to
To preserve backward compatibility with custom implementations that may have extended from an earlier version of this
class, an implementation is provided that returns
| |
| writeState | back to summary |
|---|---|
| public void writeState(FacesContext context, Object state) throws IOException Overrides jakarta. Doc from jakarta.
Take the argument
Call If the state is to be written out to hidden fields, the implementation must take care to make all necessary character replacements to make the Strings suitable for inclusion as an HTTP request paramater.
If the state saving method for this application is
If the state saving method for this application is
Write out the render kit identifier associated with this
The
| |