javax.faces.application.StateManagerWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of myfaces-api Show documentation
Show all versions of myfaces-api Show documentation
The public API classes of the Apache MyFaces CORE JSF-2.2 project
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.faces.application;
import java.io.IOException;
import javax.faces.component.UIViewRoot;
import javax.faces.context.FacesContext;
import javax.faces.FacesWrapper;
/**
* see Javadoc of JSF Specification
*
* @author Stan Silvert
*/
public abstract class StateManagerWrapper extends StateManager implements FacesWrapper
{
public abstract StateManager getWrapped();
@SuppressWarnings("deprecation")
@Override
public StateManager.SerializedView saveSerializedView(FacesContext context)
{
return getWrapped().saveSerializedView(context);
}
@Override
public Object saveView(FacesContext context)
{
return getWrapped().saveView(context);
}
@Override
public boolean isSavingStateInClient(FacesContext context)
{
return getWrapped().isSavingStateInClient(context);
}
@SuppressWarnings("deprecation")
@Override
protected Object getTreeStructureToSave(FacesContext context)
{
return getWrapped().getTreeStructureToSave(context);
}
@SuppressWarnings("deprecation")
@Override
protected Object getComponentStateToSave(FacesContext context)
{
return getWrapped().getComponentStateToSave(context);
}
@SuppressWarnings("deprecation")
@Override
public void writeState(FacesContext context, StateManager.SerializedView state) throws IOException
{
getWrapped().writeState(context, state);
}
@Override
public void writeState(FacesContext context, Object state) throws IOException
{
getWrapped().writeState(context, state);
}
@Override
public UIViewRoot restoreView(FacesContext context, String viewId, String renderKitId)
{
return getWrapped().restoreView(context, viewId, renderKitId);
}
@SuppressWarnings("deprecation")
@Override
protected UIViewRoot restoreTreeStructure(FacesContext context, String viewId, String renderKitId)
{
return getWrapped().restoreTreeStructure(context, viewId, renderKitId);
}
@SuppressWarnings("deprecation")
@Override
protected void restoreComponentState(FacesContext context, UIViewRoot viewRoot, String renderKitId)
{
getWrapped().restoreComponentState(context, viewRoot, renderKitId);
}
@Override
public String getViewState(FacesContext context)
{
return getWrapped().getViewState(context);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy