Re: Queries regarding Request Object
- From: Ross Bamford <ross@xxxxxxxxxxxx>
- Date: Wed, 11 May 2005 12:08:54 +0100
On Wed, 2005-05-11 at 03:37 -0700, anandmohans@xxxxxxxxx wrote:
> Hi All,
>
> I have a few queries regarding request object.
>
> In a servlet, when we write request.setAttribute(); does it increase
> the request header size?
>
> In other words: what is the default size of request header (if any)?
> What happens when we keep on adding objects to it?
>
>
> Regards,
> Anand
>
Attributes are simply request-scoped object references that are used to
both pass you extra information, and for you to pass things around an
individual request.
The request headers are separate - these are actually sent with the
request by the client. Once you have them they are already sent over the
wire so in that respect size doesn't matter. They don't automagically
get sent back - the response has a separate set of Headers you can use
to do that.
Relevant methods:
javax.servlet.ServletRequest.getAttribute() (et al.)
javax.servlet.http.HttpServletRequest.getHeader() (et al.)
javax.servlet.http.HttpServletResponse.setHeader() (et al.)
Cheers,
Ross
--
[Ross A. Bamford] [ross AT the.website.domain]
Roscopeco Open Tech ++ Open Source + Java + Apache + CMF
http://www.roscopec0.f9.co.uk/ + info@xxxxxxxxxxxxxxxxxx
.
- References:
- Queries regarding Request Object
- From: anandmohans
- Queries regarding Request Object
- Prev by Date: Re: "Write once, test everywhere" - Win2K / XP
- Next by Date: Re: kind of newbie question in java applete and sites
- Previous by thread: Queries regarding Request Object
- Next by thread: Tool for modeling web applications based on Struts
- Index(es):
Relevant Pages
|
Loading