What about HttpServletRequest.getRequestURI()?

-Tim

[EMAIL PROTECTED] wrote:
Is it possible to get the unparsed URI from inside the service method
of an HttpServlet? I am using tomcat 5.5.9.

I notice that the HttpServletRequest parameter to this method is
-  implemented by org.apache.catalina.connector.RequestFacade,
- which contains a org.apache.catalina.connector.RequestFacade object,
- which contains a org.apache.coyote.Request object,
- which as a field called unparsedURIMB, which is the data that I want.

In other words, I can see the information in the debugger, but there
is no way that I can find to access it.

In case anyone is interested, the reason I need this data is that I am writing a proxy server that gets its results by looking up URLs in a
previously populated database, rather than fetching them. Unless the
URL matches exactly, it will not be found. Being semantically
equivalent (such as the URL returned by
HttpServletRequest.getRequestURL) is not a good enough match.

A way to get this data through proper APIs would be nice, but a hack
would be useful too.


---------------------------------------------------------------------
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