Source Code Cross Referenced for ConfigRequests.java in  » GIS » GeoServer » org » vfny » geoserver » config » 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.config 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org.  All rights reserved.
002:         * This code is licensed under the GPL 2.0 license, availible at the root
003:         * application directory.
004:         */
005:
006:        /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org.  All rights reserved.
007:         * This code is licensed under the GPL 2.0 license, availible at the root
008:         * application directory.
009:         */
010:        package org.vfny.geoserver.config;
011:
012:        import javax.servlet.ServletContext;
013:        import javax.servlet.http.HttpServletRequest;
014:        import javax.servlet.http.HttpSession;
015:
016:        /**
017:         * Utility methods for locatating Config classes in the Servlet context.
018:         *
019:         * <p>
020:         * Called by ActionForms to lookup things in the WebContainer for the JSP page.
021:         * Similar to the Requests utility classes.
022:         * </p>
023:         *
024:         * <p>
025:         * These methods need to be kept in lockstep with the ConfigAction convience
026:         * methods.
027:         * </p>
028:         *
029:         * @author jgarnett, Refractions Research, Inc.
030:         * @author $Author: jive $ (last modification)
031:         * @version $Id: ConfigRequests.java 6326 2007-03-15 18:36:40Z jdeolive $
032:         */
033:        public class ConfigRequests {
034:            /**
035:             * Access Web Map Server Configuration Model from the WebContainer.
036:             *
037:             * <p>
038:             * Note that this represents the Configuration and not the state of the Web
039:             * Feature Server.
040:             * </p>
041:             *
042:             * @param request DOCUMENT ME!
043:             *
044:             * @return Configuration information for the Web Map Server
045:             */
046:
047:            //JD: kill this
048:            //    public static WMSConfig getWMSConfig(HttpServletRequest request) {
049:            //        HttpSession session = request.getSession();
050:            //        ServletContext context = session.getServletContext();
051:            //
052:            //        return (WMSConfig) context.getAttribute(WMSConfig.CONFIG_KEY);
053:            //    }
054:            /**
055:             * Access Web Feature Server Configuration Model from the WebContainer.
056:             *
057:             * <p>
058:             * Note that this represents the Configuration and not the state of the Web
059:             * Feature Server.
060:             * </p>
061:             *
062:             * @param request DOCUMENT ME!
063:             *
064:             * @return Configuration information for Web Feature Server
065:             */
066:
067:            //	JD: kill this
068:            //    public static WFSConfig getWFSConfig(HttpServletRequest request) {
069:            //        HttpSession session = request.getSession();
070:            //        ServletContext context = session.getServletContext();
071:            //
072:            //        return (WFSConfig) context.getAttribute(WFSConfig.CONFIG_KEY);
073:            //    }
074:            /**
075:             * Access Web Map Server Configuration Model from the WebContainer.
076:             *
077:             * @param request DOCUMENT ME!
078:             *
079:             * @return Configuration model for Global information.
080:             */
081:            public static GlobalConfig getGlobalConfig(
082:                    HttpServletRequest request) {
083:                HttpSession session = request.getSession();
084:                ServletContext context = session.getServletContext();
085:
086:                return (GlobalConfig) context
087:                        .getAttribute(GlobalConfig.CONFIG_KEY);
088:            }
089:
090:            /**
091:             * Access Catalog Configuration Model from the WebContainer.
092:             *
093:             * @param request DOCUMENT ME!
094:             *
095:             * @return Configuration model for Catalog information.
096:             */
097:            public static DataConfig getDataConfig(HttpServletRequest request) {
098:                HttpSession session = request.getSession();
099:                ServletContext context = session.getServletContext();
100:
101:                return (DataConfig) context.getAttribute(DataConfig.CONFIG_KEY);
102:            }
103:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.