[Geoserver-devel] org.geoserver.ows.Response 'getHeaders' method?

Hey justin,

What do you think about adding a "getHeaders" method to the Response class? I'd like to set a content-disposition header on the SHAPE-ZIP responder, and other responses might want to set custom headers on the way back.

I imagine the method would work similarly to the 'getMimeType()' method, just would return a hashmap of headers, rather than just that one header.

Is there another/a better way to do this?

--saul

We have content disposition setting abilities on 1.5.x I'm pretty sure, did they not make it across to trunk?

Farber, Saul (ENV) wrote:

Hey justin,
What do you think about adding a "getHeaders" method to the Response class? I'd like to set a content-disposition header on the SHAPE-ZIP responder, and other responses might want to set custom headers on the way back.
I imagine the method would work similarly to the 'getMimeType()' method, just would return a hashmap of headers, rather than just that one header.
Is there another/a better way to do this?
--saul

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4005,46435c06100651961014482!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Content-Disposition is defenitely present on 1.5.x, but I don't think the (totally freaking awesome!) new dispatching system handles it (or arbitrary other headers) just yet. I could be wrong though.

--saul

________________________________

From: Chris Holmes [mailto:cholmes@anonymised.com]
Sent: Thu 5/10/2007 2:00 PM
To: Farber, Saul (ENV)
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] org.geoserver.ows.Response 'getHeaders' method?

We have content disposition setting abilities on 1.5.x I'm pretty sure,
did they not make it across to trunk?

Farber, Saul (ENV) wrote:

Hey justin,

What do you think about adding a "getHeaders" method to the Response class? I'd like to set a content-disposition header on the SHAPE-ZIP responder, and other responses might want to set custom headers on the way back.

I imagine the method would work similarly to the 'getMimeType()' method, just would return a hashmap of headers, rather than just that one header.

Is there another/a better way to do this?

--saul

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4005,46435c06100651961014482!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org/>

Hi guys,

The reason it does not show up is because when I designed the new Response interface i wanted to keep the interface independent of http so that it could apply to other protocols. That being said I understand that http is the only thing we do now and is the 99.9% case :). So i would be cool with this. Also I think the idea of a "header" could probably apply to other protocols as well. So +1 saul.

-Justin

Farber, Saul (ENV) wrote:

Content-Disposition is defenitely present on 1.5.x, but I don't think the (totally freaking awesome!) new dispatching system handles it (or arbitrary other headers) just yet. I could be wrong though.
--saul

________________________________

From: Chris Holmes [mailto:cholmes@anonymised.com]
Sent: Thu 5/10/2007 2:00 PM
To: Farber, Saul (ENV)
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] org.geoserver.ows.Response 'getHeaders' method?

We have content disposition setting abilities on 1.5.x I'm pretty sure,
did they not make it across to trunk?

Farber, Saul (ENV) wrote:

Hey justin,

What do you think about adding a "getHeaders" method to the Response class? I'd like to set a content-disposition header on the SHAPE-ZIP responder, and other responses might want to set custom headers on the way back.

I imagine the method would work similarly to the 'getMimeType()' method, just would return a hashmap of headers, rather than just that one header.

Is there another/a better way to do this?

--saul

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org/>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,46435f14105061431913854!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org