public abstract class JcmsServletFilter
extends java.lang.Object
processFilter(ServletRequest)
to prevent multiple processing of
the filter under weblogic.
initJSONBridge(HttpServletRequest)
in order
to retrieve (and init if not already done) the JSON RPC Bridge in use for current session.Constructor and Description |
---|
JcmsServletFilter() |
Modifier and Type | Method and Description |
---|---|
protected void |
endFilter(javax.servlet.ServletRequest req)
Ends the filter invocation if
processFilter(ServletRequest) had been invoked. |
protected org.jabsorb.JSONRPCBridge |
initJSONBridge(javax.servlet.http.HttpSession session)
Initialize the session JSON Bridge (if not already done) and
store it under session attribute "JSONRPCBridge".
|
protected boolean |
processFilter(javax.servlet.ServletRequest req)
Checks and set the servlet filter state indicating if the filter can do all
its processing or if it should directly call filter chain.
|
protected boolean processFilter(javax.servlet.ServletRequest req)
if (!processFilter(req)) { chain.doFilter(req, res); return; } [...]
req
- the current request being processedprotected void endFilter(javax.servlet.ServletRequest req)
processFilter(ServletRequest)
had been invoked.
if (!processFilter(req)) { chain.doFilter(req, res); return; } try { [...] } finally { endFilter(req); }
This method is optionnal, but it must be called to allow the filter to be invoked again
in the same request if a new forward is performed after filter invocation.
This can happens for error processing.
For example :
request filter 1 begin > servlet (throws NPE) > filter 1 ends > appserver forward to error page > filter 1 begin > error page > filter1 ends
req
- the current request being processedprotected org.jabsorb.JSONRPCBridge initJSONBridge(javax.servlet.http.HttpSession session)
session
- the current HttpSessionCopyright © 2001-2010 Jalios SA. All Rights Reserved.