Hear us Roar
Article:
 |
|
Writing Servlet 2.3 Filters
|
| Subject: |
|
Implementing Filter Servlet for WebServices in WebLogic |
| Date: |
|
2003-08-28 09:53:45 |
| From: |
|
vaddanki
|
Response to: Implementing Filter Servlet for WebServices in WebLogic
|
|
Hi Chetan,
the doFilter method of Filter has this prototype
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws java.io.IOException,
ServletException
You can get the output stream using the following code
ServletOutputStream out = response.
getOutputStream ();
It is the responsibility of the container (implementing servlet api 2.3 or above) to call the doFilter method with the correct args -- even in the case of a web service.
Hope it helps.
Venkatesh
|
|
| |