| org.vfny.geoserver.action.GeoServerAction org.vfny.geoserver.action.ConfigAction
All known Subclasses: org.vfny.geoserver.action.data.DataNamespacesEditorAction, org.vfny.geoserver.action.validation.ValidationTestSuiteNewAction, org.vfny.geoserver.action.validation.ValidationTestEditorAction, org.vfny.geoserver.action.validation.ValidationTestDoIt, org.vfny.geoserver.action.data.DataDataStoresSelectAction, org.vfny.geoserver.action.data.DataNamespacesSelectAction, org.vfny.geoserver.action.data.DataFeatureTypesNewAction, org.vfny.geoserver.action.validation.ValidationTestNewAction, org.vfny.geoserver.action.wfs.WFSContentAction, org.vfny.geoserver.action.data.CoverageStoresNewAction, org.vfny.geoserver.action.data.CoveragesEditorAction, org.vfny.geoserver.action.validation.ValidationTestSuiteSelectAction, org.vfny.geoserver.action.wms.WMSDescriptionAction, org.vfny.geoserver.action.wcs.WCSContentAction, org.vfny.geoserver.action.data.TypesEditorAction, org.vfny.geoserver.action.FreeMemoryAction, org.vfny.geoserver.action.validation.ValidationTestSelectAction, org.vfny.geoserver.action.data.StylesEditorAction, org.vfny.geoserver.action.wcs.WCSDescriptionAction, org.vfny.geoserver.action.data.DataDataStoresEditorAction, org.vfny.geoserver.action.ConfigIndexAction, org.vfny.geoserver.action.LoadXMLAction, org.vfny.geoserver.action.global.GeoServerConfigurationSubmit, org.vfny.geoserver.action.FreeJAIMemoryAction, org.vfny.geoserver.action.data.CoverageStoresSelectAction, org.vfny.geoserver.action.data.CoverageStoresEditorAction, org.vfny.geoserver.action.AdminIndexAction, org.vfny.geoserver.action.wfs.WFSDescriptionAction, org.vfny.geoserver.action.wms.WMSContentAction, org.vfny.geoserver.action.UpdateGSAction, org.vfny.geoserver.action.data.CalculateBoundingBoxAction, org.vfny.geoserver.action.data.StylesNewAction, org.vfny.geoserver.action.LoginEditAction, org.vfny.geoserver.action.data.DataDataStoresNewAction, org.vfny.geoserver.action.SaveXMLAction, org.vfny.geoserver.action.data.DataNamespacesNewAction, org.vfny.geoserver.action.data.DataCoveragesNewAction, org.vfny.geoserver.action.FreeLocksAction, org.vfny.geoserver.action.wms.WMSRenderingAction, org.vfny.geoserver.action.data.DataFeatureTypesSelectAction, org.vfny.geoserver.action.data.StylesSelectAction, org.vfny.geoserver.action.data.DataCoveragesSelectAction,
ConfigAction | public class ConfigAction extends GeoServerAction (Code) | | GeoConfigAction is a common super class used by STRUTS Actions.
ConfigAction is used to store shared services, such as looking up the
Configuration Model.
Capabilities:
-
Config (Model) Access: Convience routines have been writen to allow access
to the Config Model from the Web Container.
- Since configuraiton should only be attempted when logged in, an effort has been made to smooth the
required login check required by most geoserver config actions.
Most config actions require the follow check to be made:
class MyConfigAction extends ConfigAction {
Redirect execute( HttpServletRequest request, ){
if( !isLoggedIn( request )){
return new Redirect(�Login Page�);
}
UserContainer user = getUserContainer( request );
�
return new Redirect(�my.jsp�);
}
}
To prevent the duplication of the above code in each and every config
action pleaes make use of the alternate execute method:
class MyConfigAction extends ConfigAction {
Redirect execute( UserContainer user, HttpServletRequest request ){
�
return new Redirect(�my.jsp�);
}
}
Please remember that Actions (like servlets) should never make use of
instance variables in order to remain thread-safe.
author: Jody Garnett, Refractions Research, Inc. author: jive author: $Author: Alessio Fabiani (alessio.fabiani@gmail.com) $ (last modification) author: $Author: Simone Giannecchini (simboss1@gmail.com) $ (last modification) version: $Id: ConfigAction.java 6958 2007-06-08 16:20:59Z aaime $ |
execute | public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code) | | Execute method that redirects user if not loggin in.
The UserContainer is gathered from the session context using the
GeoServerAction.getUserContainer( request method ).
See Also: org.apache.struts.action.Action.execute(org.apache.struts.action.ActionMappingorg.apache.struts.action.ActionFormjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponse) |
execute | public ActionForward execute(ActionMapping mapping, ActionForm form, UserContainer user, HttpServletRequest request, HttpServletResponse response) throws Exception(Code) | | A "safe" execute method, only called after the user has logged in.
You may still override the normal execute method if you do not require
this service.
|
getApplicationState | protected ApplicationState getApplicationState()(Code) | | Access Catalog Configuration Model from the WebContainer.
Configuration model for Catalog information. |
getData | protected Data getData()(Code) | | Access Catalog Model from the WebContainer.
Configuration model for Catalog information. |
getDataConfig | protected DataConfig getDataConfig()(Code) | | Access Catalog Configuration Model from the WebContainer.
Configuration model for Catalog information. |
getGlobalConfig | protected GlobalConfig getGlobalConfig()(Code) | | Access Web Map Server Configuration Model from the WebContainer.
Configuration model for Global information. |
getValidationConfig | protected ValidationConfig getValidationConfig()(Code) | | Access Catalog Configuration Model from the WebContainer.
Configuration model for Catalog information. |
getWCSConfig | protected WCSConfig getWCSConfig()(Code) | | Access Web Coverage Server Configuration Model from the WebContainer.
Note that this represents the Configuration and not the state of the Web
Coverage Server.
Configuration information for Web Coverage Server |
getWFSConfig | protected WFSConfig getWFSConfig()(Code) | | Access Web Feature Server Configuration Model from the WebContainer.
Note that this represents the Configuration and not the state of the Web
Feature Server.
Configuration information for Web Feature Server |
getWMSConfig | protected WMSConfig getWMSConfig()(Code) | | Access Web Map Server Configuration Model from the WebContainer.
Note that this represents the Configuration and not the state of the Web
Feature Server.
Configuration information for the Web Map Server |
|
|