Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » response headers for custom service handlers
response headers for custom service handlers [message #91152] Mon, 02 June 2008 05:56 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Using Rap with EJB 3
Next Topic:Right-menu in Text
Goto Forum:
  


Current Time: Wed May 07 21:38:02 EDT 2025

Powered by FUDForum. Page generated in 0.02973 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top