oops! will use branches, sorry
----- Original Message -----
From: "Chris Holmes" <cholmes@anonymised.com>
To: "Gabriel Roldán" <gabriel.roldan@anonymised.com>
Cc: "Geoghegan, Sean" <Sean.Geoghegan@anonymised.com>; "Paul Ramsey"
<pramsey@anonymised.com>; <geoserver-devel@lists.sourceforge.net>
Sent: Thursday, March 11, 2004 4:38 AM
Subject: Re: [Geoserver-devel] GZ GML
Hmm.. I really liked the filter idea, having that logic completely
outside of GeoServer. But I do think having the GML2.gz option directly
available to the client is pretty esential, as I don't know that all
clients will know to request it. I've seen other wfs's that make gml2.gz
and gml2.zip available, so I think that's pretty normal to do. And then I
feel like if we've got the logic in geoserver already then we might as
well just do the automatic detection there, or else we'd be replicating
the work of gzipping.
Gabriel, next time you do a change of this sort, that people haven't
necessarily decided on, and that's right before a release, could you put
it on a branch? I think that we should start working on branches for most
any new feature - only bug fixes should routinely go on head. This will
allow us to get releases out more often - after 1.2.0 I'd like to get
minor releases out every 2-4 weeks, for most any little improvement. If
we're always waiting for someone to finish up, and are worried about
testing then that's more difficult to do.
Chris
On Thu, 11 Mar 2004, Gabriel Roldán wrote:
> Well, I just committed a refactoring of FeatureTypeResponse to deal with
a
> new output format: GML2.gz
>
> to do that, I needed to separate the execution of the query from the
> response preparation in execute().
> The apporach was to leave FeatureResponse deal with the execution and
make
> delegates for encoding to
> the desired output format.
> Also added getContentEncoding to Response interface, wich returns null
or
> the content encoding if there are any. GML2FeatureResponseDelegate
returns
> "gzip" if outputformat was "GML2.gz". This delegate deals with both GML2
and
> GML2.gz formats, but the API now allows to add new encoders for other
output
> formats by just adding a new encoder (implementation of
> FeatureResponseDelegate) in FeatureResponseDelegateFactory.
>
> I have tested it almost extensively and I'm getting the same result as
> before the change.
>
> Any feedback will be appreciated.
>
> best regards,
>
> gabriel
>
> ----- Original Message -----
> From: "Geoghegan, Sean" <Sean.Geoghegan@anonymised.com>
> To: "'Chris Holmes'" <cholmes@anonymised.com>; "Paul Ramsey"
> <pramsey@anonymised.com>
> Cc: <geoserver-devel@lists.sourceforge.net>
> Sent: Wednesday, March 10, 2004 4:25 AM
> Subject: RE: [Geoserver-devel] GZ GML
>
>
> > IMO stuff like Gzip should be handled at either the HTTP server level,
as
> Paul mentioned, or by using Servlet Filters. This means Geoserver does
not
> have to handle it directly.
> >
> > There is a good article on Servlet filters for content compression at
> http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html
> >
> > Sean
> >
> > > -----Original Message-----
> > > From: Chris Holmes [mailto:cholmes@anonymised.com]
> > > Sent: Wednesday, 10 March 2004 10:43 AM
> > > To: Paul Ramsey
> > > Cc: geoserver-devel@lists.sourceforge.net
> > > Subject: Re: [Geoserver-devel] GZ GML
> > >
> > > > Regarding gzipped GML, should GeoServer do this at all? This is a
> > > > protocol level thing, the client requests compression if
> > > possible and
> > > > the server compresses if able. You could probably make GeoServer
do
> > > > compression just be running it behind a web server that supported
> > > > compression, like Apache with mod_deflate enabled. Why add any
> > > > infrastructure at all to GeoServer, it is an HTTP thing.
> > >
> > > Well, I think GeoServer should definitely send gzipped gml if
> > > the client specifically requests it (in the getFeature
> > > request), as this is completely in the scope of the spec, to
> > > request different formats. This way clients who don't know
> > > how to ask for the gzipped stuff in the http header can also get it.
> > >
> > > As for doing it automatically, I'm a bit ambivalent. On the
> > > one hand I do sorta agree that it's a lower level compression
> > > that geoserver shouldn't do. But on the other hand geoserver
> > > is a server, and one of the main design goals is to make it
> > > really easy to set up while still being very powerful. I
> > > imagine that a number of users who have some data to share
> > > aren't sys admins who are super experienced at compiling
> > > apache with mod_deflate, let alone setting up apache with a
> > > connector to a servlet container (something I've done once or
> > > twice and definitely found it to be a bitch). Most all
> > > installs of geoserver I've seen are run directly from the
> > > servlet container, so from that perspective I think it makes
> > > sense to do it for them if we can, as I don't believe (I
> > > could be wrong here) that tomcat or resin or any of them do
> > > that sort of compression in their built in web servers. So
> > > yeah, the one thing I'm going to insist with Gabriel rolling
> > > it in is that it's absolutely seamless. Gabriel, could you
> > > start it on a branch or give it a config option similar to
> > > the SPEED strategy, so we can test it out before it just
> > > shows up in geoserver code? I think it should maybe wait
> > > until 1.2.1, at least as a default. Make the option
> > > available in 1.2.0 so we can all sanity check it if we want
> > > to. And even in 1.2.1 I think we should put an option in the
> > > services.xml file (and in the ui) for users to turn it on or off.
> > >
> > > Chris
> > >
> > >
> > >
> > > >
> > > > P.
> > > >
> > > >
> > >
> > > --
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: IBM Linux Tutorials Free
> > > Linux tutorial presented by Daniel Robbins, President and CEO
> > > of GenToo technologies. Learn everything from fundamentals to
> > > system
> > >
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > > _______________________________________________
> > > Geoserver-devel mailing list
> > > Geoserver-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/geoserver-devel
> > >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IBM Linux Tutorials
> > Free Linux tutorial presented by Daniel Robbins, President and CEO of
> > GenToo technologies. Learn everything from fundamentals to system
> > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > _______________________________________________
> > Geoserver-devel mailing list
> > Geoserver-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Geoserver-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>
--
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel