StateHelper implementations.
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | compressViewState
Flag indicating whether or not view state should be compressed to reduce the memory/bandwidth footprint. |
| protected char[] | fieldEnd
This will be used the by the different |
| protected char[] | fieldMiddle
This will be used by the different |
| private static final Logger | |
| protected SerializationProvider | serialProvider
Factory for serialization streams. |
| protected char[] | stateFieldStart
This will be used the by the different |
| private static final String | |
| protected WebConfiguration | webConfig
Access to the context init parameters that configure this application. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public String | |
| public abstract Object | |
| protected static String | Returns: the view state from this requestthe context)FacesContext for the current requestGet our view state from this request |
| public abstract boolean | |
| protected void | writeClientWindowField(FacesContext
the Faces context. context, ResponseWriter the response writer. writer)Write the client window state field. |
| protected void | writeRenderKitIdField(FacesContext
the context, ResponseWriter FacesContext for the current requestthe writer)ResponseWriter to write to
If a custom |
| public abstract void | writeState(FacesContext ctx, Object state, StringBuilder stateCapture)
Functionally similar to ResponseStateManager#writeState(FacesContext, Object)
with an option to write the state directly to the provided |
| compressViewState | back to summary |
|---|---|
| protected boolean compressViewState Flag indicating whether or not view state should be compressed to reduce the memory/bandwidth footprint. This option is common to both types of state saving. | |
| fieldEnd | back to summary |
|---|---|
| protected char[] fieldEnd This will be used the by the different | |
| fieldMiddle | back to summary |
|---|---|
| protected char[] fieldMiddle This will be used by the different | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| serialProvider | back to summary |
|---|---|
| protected SerializationProvider serialProvider Factory for serialization streams. These are pluggable via the WebConfiguration.WebContextInitParameter#SerializationProviderClass. | |
| stateFieldStart | back to summary |
|---|---|
| protected char[] stateFieldStart This will be used the by the different | |
| TOKEN_NAME | back to summary |
|---|---|
| private static final String TOKEN_NAME | |
| webConfig | back to summary |
|---|---|
| protected WebConfiguration webConfig Access to the context init parameters that configure this application. | |
| StateHelper | back to summary |
|---|---|
| public StateHelper() Constructs a new | |
| createAndStoreCryptographicallyStrongTokenInSession | back to summary |
|---|---|
| public static void createAndStoreCryptographicallyStrongTokenInSession(HttpSession session) | |
| getCryptographicallyStrongTokenFromSession | back to summary |
|---|---|
| public String getCryptographicallyStrongTokenFromSession(FacesContext context) | |
| getState | back to summary |
|---|---|
| public abstract Object getState(FacesContext ctx, String viewId) throws IOException | |
| getStateParamValue | back to summary |
|---|---|
| protected static String getStateParamValue(FacesContext context) Get our view state from this request
| |
| isStateless | back to summary |
|---|---|
| public abstract boolean isStateless(FacesContext ctx, String viewId) throws IllegalStateException | |
| writeClientWindowField | back to summary |
|---|---|
| protected void writeClientWindowField(FacesContext context, ResponseWriter writer) throws IOException Write the client window state field.
| |
| writeRenderKitIdField | back to summary |
|---|---|
| protected void writeRenderKitIdField(FacesContext context, ResponseWriter writer) throws IOException
If a custom
| |
| writeState | back to summary |
|---|---|
| public abstract void writeState(FacesContext ctx, Object state, StringBuilder stateCapture) throws IOException
Functionally similar to ResponseStateManager#writeState(FacesContext, Object)
with an option to write the state directly to the provided | |