I Verified this returns the port indicated by the client in the header.

Not the port the request was recieved by at the tomcat instance.
Appropriate for a client to send and passed through by proxys, remappers, front ends etc. but not to determine where it ends up.
PK

At 07:23 3/13/2007, you wrote:
Damn! I missed that :)  Thanks.

I assume this is taking it from where the hit arrives in at the server and not the HTTP headers passed in (which could be anything)

At 01:32 3/13/2007, you wrote:
> From: Peter Kennard [mailto:[EMAIL PROTECTED]
> Subject: Re: Can one map a servlet to a specific connctor?
>
> Can I determine the connector port connected to for a request from
> service() I don't see it in the servlet API but am willing to access
> somthing tomcat specific.

ServletRequest.getServerPort() is inherited by HTTPServletRequest.

 - Chuck



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to