Source Code Cross Referenced for Request.java in  » GIS » GeoTools-2.4.1 » org » geotools » data » ows » 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 » GeoTools 2.4.1 » org.geotools.data.ows 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         *    GeoTools - OpenSource mapping toolkit
003:         *    http://geotools.org
004:         *    (C) 2004-2006, GeoTools Project Managment Committee (PMC)
005:         *    
006:         *    This library is free software; you can redistribute it and/or
007:         *    modify it under the terms of the GNU Lesser General Public
008:         *    License as published by the Free Software Foundation;
009:         *    version 2.1 of the License.
010:         *
011:         *    This library is distributed in the hope that it will be useful,
012:         *    but WITHOUT ANY WARRANTY; without even the implied warranty of
013:         *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014:         *    Lesser General Public License for more details.
015:         */
016:        package org.geotools.data.ows;
017:
018:        import java.io.IOException;
019:        import java.io.InputStream;
020:        import java.io.OutputStream;
021:        import java.net.URL;
022:        import java.util.Properties;
023:
024:        import org.geotools.ows.ServiceException;
025:
026:        /**
027:         * This represents a Request to be made against a Open Web Service.
028:         * 
029:         * @author rgould
030:         * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/main/src/main/java/org/geotools/data/ows/Request.java $
031:         */
032:        public interface Request {
033:
034:            /** Represents the REQUEST parameter */
035:            public static final String REQUEST = "REQUEST"; //$NON-NLS-1$
036:            /** Represents the VERSION parameter */
037:            public static final String VERSION = "VERSION"; //$NON-NLS-1$
038:            /** Represents the WMTVER parameter */
039:            public static final String WMTVER = "WMTVER"; //$NON-NLS-1$
040:            public static final String SERVICE = "SERVICE";
041:
042:            /**
043:             * Once the properties of the request are configured, this will return
044:             * the URL that points to the server and contains all of the appropriate
045:             * name/value parameters. 
046:             * 
047:             * @return a URL that can be used to issue the request
048:             */
049:            public URL getFinalURL();
050:
051:            /**
052:             * Sets the name/value property for this request.
053:             * 
054:             * Note that when using this method, it is up to the programmer to
055:             * provide their own encoding of <code>value</code> according to the
056:             * OWS specifications! The code will not do this for you. 
057:             * 
058:             * Different OWS specifications define different ways to do this. There are 
059:             * notorious differences between WMS 1.1.1 (section 6.2.1) and 
060:             * WMS 1.3.0 (section 6.3.2) for example.
061:             * 
062:             * If value is null, "name" is removed from the properties table.
063:             * 
064:             * @param name the name of the property
065:             * @param value the value of the property
066:             */
067:            public void setProperty(String name, String value);
068:
069:            /**
070:             * @return a copy of this request's properties
071:             */
072:            public Properties getProperties();
073:
074:            /**
075:             * Each Request must know how to create it's counterpart Response. 
076:             * Given the content type and input stream (containin the response data), 
077:             * this method must return an appropriate Response object.
078:             * 
079:             * @param contentType the MIME type of the data in the inputStream
080:             * @param inputStream contains the data from the response
081:             * @throws ServiceException
082:             * @throws IOException
083:             */
084:            Response createResponse(String contentType, InputStream inputStream)
085:                    throws ServiceException, IOException;
086:
087:            /**
088:             * This method indicates whether this request needs to transmit some data
089:             * to the server using POST. If this returns true, performPostOutput() will be called
090:             * during the connection, allowing the data to be written out to the server.
091:             * 
092:             * @return true if this request needs POST support, false otherwise.
093:             */
094:            boolean requiresPost();
095:
096:            /**
097:             * If this request uses POST, it must specify the content type of the data
098:             * that is to be written out during performPostOutput().
099:             * 
100:             * For open web services, this is usually "application/xml".
101:             * 
102:             * @return the MIME type of the data to be sent during the request
103:             */
104:            String getPostContentType();
105:
106:            /**
107:             * This is called during the connection to the server, allowing this
108:             * request to write out data to the server by using the provided
109:             * outputStream.
110:             * 
111:             * Implementors of this method do not need to call outputStream.flush() or 
112:             * outputStream.close(). The framework will call them immediately after
113:             * calling this method.
114:             * 
115:             * @param outputStream
116:             */
117:            void performPostOutput(OutputStream outputStream)
118:                    throws IOException;
119:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.