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 javax. 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 javax. 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 Object | getTreeStructureToRestore(FacesContext
The context, String FacesContext instance for the current requestView identifier of the view to be restored viewId)Overrides javax. The implementation must inspect the current request and return
the tree structure Object passed to it on 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 javax.
Return the specified state as a |
| public boolean | isPostback(FacesContext
the context)FacesContext for the current request.Overrides javax. 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 javax. 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 javax. 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 javax. Doc from javax. Compliant implementations must return a
cryptographically strong token for use to protect views in this
application. For backwards compatability with earlier revisions, a
default implementation is provided that simply returns
| |
| getState | back to summary |
|---|---|
| public Object getState(FacesContext context, String viewId) Overrides javax. Doc from javax. 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 For backwards compatability with existing
| |
| getTreeStructureToRestore | back to summary |
|---|---|
| public Object getTreeStructureToRestore(FacesContext context, String viewId) Overrides javax. Doc from javax. The implementation must inspect the current request and return
the tree structure Object passed to it on a previous invocation of
| |
| getViewState | back to summary |
|---|---|
| public String getViewState(FacesContext context, Object state) Overrides javax. Doc from javax.
Return the specified state as a
| |
| isPostback | back to summary |
|---|---|
| public boolean isPostback(FacesContext context) Overrides javax. Doc from javax. 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 compatability with implementations of
| |
| isStateless | back to summary |
|---|---|
| public boolean isStateless(FacesContext facesContext, String viewId) Overrides javax. Doc from javax. 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 javax. Doc from javax. 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
For backwards compatability with existing
The
| |