Prashant Jain wrote:
> 
> KH,
> 
> > If you're using the RPCRouterServlet, then the Call object that is
> extracted
> > from the Envelope has the Headers.
> > Vector v = call.getHeader.getHeaderEntries();
> 
> You are right that the header can be extracted from the Envelope I get
> when I use Message-based service. However, I want to "look" at the
> header even before it reaches the RPCRouterServlet. I want to use Filter
> support provided by Tomcat 4.0 to intercept the requests. The Filter can
> be installed to intercept any request _before_ it is delivered to the
> servlet.
> 
> I am able to install the Filter succesfully and also intercept the
> request. But I don't know how to read the Header. Here is the method on
> the Filter that gets called:
> 
> public void doFilter(ServletRequest req, ServletResponse res,
> FilterChain filterChain)
> 
> So my basic problem is how to extract the Header information given just
> the ServletRequest object.

Isn't that what the getHeaderNames, getHeaders, and getHeader
methods in HttpServletRequest area for? Those ServletRequest and
ServletResponse references are really HttpServletRequest and
HttpServletResponse objects if your message is arriving by HTTP.

-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

Reply via email to