response headers for custom service handlers [message #91152] |
Mon, 02 June 2008 05:56  |
Eclipse User |
|
|
|
Hi All,
public void service() throws IOException, ServletException
{
HttpServletResponse response = ContextProvider.getResponse();
//
// Question: will the following line affect the other handlers
which are not custom ones?
//
//
response.addHeader("Cache-Control", "private");
//
}
Thanks in advance
|
|
|
Re: response headers for custom service handlers [message #91195 is a reply to message #91152] |
Mon, 02 June 2008 07:04  |
Eclipse User |
|
|
|
Hi Dmitry,
I think that should work as expected. However, you must write the
headers before writing the response's content.
Regards,
Stefan.
Dmitry Pryadkin schrieb:
> Hi All,
>
> public void service() throws IOException, ServletException
> {
> HttpServletResponse response = ContextProvider.getResponse();
>
> //
> // Question: will the following line affect the other handlers which
> are not custom ones?
> //
> //
> response.addHeader("Cache-Control", "private");
> //
> }
>
>
> Thanks in advance
|
|
|
Powered by
FUDForum. Page generated in 0.02973 seconds