Hi all, if you want to start from scratch I do have a recent implementation of an HTTP client for a protocol that is somewhat similar to WFS, and it's quite compact too:
Have a look in: http://svn.codehaus.org/geoserver/trunk/src/community/gss/src/main/java/org/geoserver/gss/ and in particular to: http://svn.codehaus.org/geoserver/trunk/src/community/gss/src/main/java/org/geoserver/gss/HTTPGSSClient.java http://svn.codehaus.org/geoserver/trunk/src/community/gss/src/main/java/org/geoserver/gss/HTTPGSSClientFactory.java Highlights: - uses gt-xsd and gets quite a compact code as a result - uses commons-httpclient to play the role of a well behaved http client (well, even too much well behaved with just one connection per host, you can go up to 4-6, beyond that the client is considered evil ;-) ) Downsides: - it is not using the StreamingParser which is needed to handle large result sets However, as a word of caution, I would not develop on gt 2.5.x: the gt-xsd module has seen quite a bit of improvements in the meantime and if you find any issue I'm not sure Justin will be able to help you back there. Trunk is the place for new developments, that's where all the developers (and help) are. Cheers Andrea ----------------------------------------------------- Ing. Andrea Aime Senior Software Engineer GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584962313 fax: +39 0584962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ----------------------------------------------------- ------------------------------------------------------------------------------ Achieve Improved Network Security with IP and DNS Reputation. Defend against bad network traffic, including botnets, malware, phishing sites, and compromised hosts - saving your company time, money, and embarrassment. Learn More! http://p.sf.net/sfu/hpdev2dev-nov _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
