Class StateHelper

java.lang.Object
com.sun.faces.renderkit.StateHelper
Direct Known Subclasses:
ClientSideStateHelper, ServerSideStateHelper

public abstract class StateHelper extends Object
Common code for the default StateHelper implementations.
  • Field Details

    • serialProvider

      protected SerializationProvider serialProvider

      Factory for serialization streams. These are pluggable via the WebConfiguration.WebContextInitParameter#SerializationProviderClass.

    • webConfig

      protected WebConfiguration webConfig

      Access to the context init parameters that configure this application.

    • compressViewState

      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.

    • stateFieldStart

      protected char[] stateFieldStart
      This will be used the by the different StateHelper implementations when writing the start of the state field.
    • fieldMiddle

      protected char[] fieldMiddle
      This will be used by the different StateHelper implementations when writing the middle of the state or viewId fields.
    • fieldEnd

      protected char[] fieldEnd
      This will be used the by the different StateHelper implementations when writing the end of the state or viewId field. This value of this field is determined by the value of the WebConfiguration.BooleanWebContextInitParameter.AutoCompleteOffOnViewState
  • Constructor Details

    • StateHelper

      public StateHelper()
      Constructs a new StateHelper instance.
  • Method Details