Source Code Cross Referenced for WCS.java in  » GIS » GeoServer » org » vfny » geoserver » global » 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.global 
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:        package org.vfny.geoserver.global;
006:
007:        import org.vfny.geoserver.global.dto.ServiceDTO;
008:        import org.vfny.geoserver.global.dto.WCSDTO;
009:
010:        /**
011:         * WCS
012:         *
013:         * <p>
014:         * Represents the GeoServer information required to configure an instance of the
015:         * WCS Server. This class holds the currently used configuration and is
016:         * instantiated initially by the GeoServerPlugIn at start-up, but may be
017:         * modified by the Configuration Interface during runtime. Such modifications
018:         * come from the GeoServer Object in the SessionContext.
019:         * </p>
020:         *
021:         * <p>
022:         * WCS wcs = new WCS(dto); System.out.println(wcs.getName());
023:         * System.out.println(wcs.getAbstract());
024:         * </p>
025:         *
026:         * @author $Author: Alessio Fabiani (alessio.fabiani@gmail.com) $ (last
027:         *         modification)
028:         * @author $Author: Simone Giannecchini (simboss1@gmail.com) $ (last
029:         *         modification)
030:         * @version $Id: WCS.java 7731 2007-11-10 02:52:30Z groldan $
031:         */
032:        public final class WCS extends Service {
033:            public static final String WEB_CONTAINER_KEY = "WCS";
034:
035:            /** list of WMS Exception Formats */
036:            private static final String[] EXCEPTION_FORMATS = {
037:                    "application/vnd.ogc.se_xml",
038:                    "application/vnd.ogc.se_inimage",
039:                    "application/vnd.ogc.se_blank" };
040:
041:            /**
042:             *
043:             * @uml.property name="gmlPrefixing" multiplicity="(0 1)"
044:             */
045:            private boolean gmlPrefixing;
046:
047:            /**
048:             * WCS constructor.
049:             *
050:             * <p>
051:             * Stores the data specified in the WCSDTO object in this WCS Object for
052:             * GeoServer to use.
053:             * </p>
054:             *
055:             * @param config
056:             *            The data intended for GeoServer to use.
057:             */
058:            public WCS(WCSDTO config) {
059:                super (config.getService());
060:                setId("wcs");
061:                gmlPrefixing = config.isGmlPrefixing();
062:            }
063:
064:            /**
065:             * Creates the WCS service by getting the WCSDTO object from the
066:             * config and calling {@link #WCS(WCSDTO)}.
067:             *
068:             * @throws ConfigurationException
069:             */
070:            public WCS(Config config, Data data, GeoServer geoServer)
071:                    throws ConfigurationException {
072:                this (config.getWcs());
073:                setData(data);
074:                setGeoServer(geoServer);
075:            }
076:
077:            /**
078:             * WCS constructor.
079:             *
080:             * <p>
081:             * Package constructor intended for default use by GeoServer
082:             * </p>
083:             *
084:             * @see GeoServer#GeoServer()
085:             */
086:            WCS() {
087:                super (new ServiceDTO());
088:                setId("wcs");
089:            }
090:
091:            /**
092:             * load purpose.
093:             *
094:             * <p>
095:             * Loads a new data set into this object.
096:             * </p>
097:             *
098:             * @param config
099:             */
100:            public void load(WCSDTO config) {
101:                super .load(config.getService());
102:                gmlPrefixing = config.isGmlPrefixing();
103:            }
104:
105:            /**
106:             * Implement toDTO.
107:             *
108:             * <p>
109:             * Package method used by GeoServer. This method may return references, and
110:             * does not clone, so extreme caution sould be used when traversing the
111:             * results.
112:             * </p>
113:             *
114:             * @return WCSDTO An instance of the data this class represents. Please see
115:             *         Caution Above.
116:             *
117:             * @see org.vfny.geoserver.global.GlobalLayerSupertype#toDTO()
118:             * @see WCSDTO
119:             */
120:            public Object toDTO() {
121:                WCSDTO dto = new WCSDTO();
122:                dto.setService((ServiceDTO) super .toDTO());
123:                dto.setGmlPrefixing(gmlPrefixing);
124:
125:                return dto;
126:            }
127:
128:            /**
129:             * isGmlPrefixing purpose.
130:             *
131:             * <p>
132:             * Description ...
133:             * </p>
134:             *
135:             * @return
136:             */
137:            public boolean isGmlPrefixing() {
138:                return gmlPrefixing;
139:            }
140:
141:            /**
142:             * setGmlPrefixing purpose.
143:             *
144:             * <p>
145:             * Description ...
146:             * </p>
147:             *
148:             * @param b
149:             *
150:             * @uml.property name="gmlPrefixing"
151:             */
152:            public void setGmlPrefixing(boolean b) {
153:                gmlPrefixing = b;
154:            }
155:
156:            /**
157:             * getExceptionFormats purpose.
158:             *
159:             * <p>
160:             * Returns a static list of Exception Formats in as Strings
161:             * </p>
162:             *
163:             * @return String[] a static list of Exception Formats
164:             */
165:            public String[] getExceptionFormats() {
166:                return EXCEPTION_FORMATS;
167:            }
168:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.