Java Doc for ConfigAction.java in  » GIS » GeoServer » org » vfny » geoserver » action » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoServer » org.vfny.geoserver.action 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 $




Method Summary
public  ActionForwardexecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
     Execute method that redirects user if not loggin in.
public  ActionForwardexecute(ActionMapping mapping, ActionForm form, UserContainer user, HttpServletRequest request, HttpServletResponse response)
     A "safe" execute method, only called after the user has logged in.
protected  ApplicationStategetApplicationState()
     Access Catalog Configuration Model from the WebContainer.
protected  DatagetData()
     Access Catalog Model from the WebContainer.
protected  DataConfiggetDataConfig()
     Access Catalog Configuration Model from the WebContainer.
protected  GlobalConfiggetGlobalConfig()
     Access Web Map Server Configuration Model from the WebContainer.
protected  ValidationConfiggetValidationConfig()
     Access Catalog Configuration Model from the WebContainer.
protected  WCSConfiggetWCSConfig()
     Access Web Coverage Server Configuration Model from the WebContainer.
protected  WFSConfiggetWFSConfig()
     Access Web Feature Server Configuration Model from the WebContainer.
protected  WMSConfiggetWMSConfig()
     Access Web Map Server Configuration Model from the WebContainer.



Method Detail
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



Fields inherited from org.vfny.geoserver.action.GeoServerAction
protected static Logger LOGGER(Code)(Java Doc)

Methods inherited from org.vfny.geoserver.action.GeoServerAction
protected ApplicationState getApplicationState(HttpServletRequest request)(Code)(Java Doc)
public GeoServer getGeoServer()(Code)(Java Doc)
public UserContainer getUserContainer(HttpServletRequest request)(Code)(Java Doc)
public WCS getWCS(HttpServletRequest request)(Code)(Java Doc)
public WFS getWFS(HttpServletRequest request)(Code)(Java Doc)
public WMS getWMS(HttpServletRequest request)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.