public class FilterDispatcherCompatWeblogic61 extends FilterDispatcher
FilterDispatcher
.
This class properly handles the weblogic.jar handling
of servlet filters. There is one serious incompatibility, and
that is that while FilterDispatcher.init(FilterConfig)
throws a ServletException
, this class's method
setFilterConfig(FilterConfig)
does not throw
the exception. Since setFilterConfig(FilterConfig)
invokes FilterDispatcher.init(FilterConfig)
, the setter
must "swallow" the exception. This it does by logging the
exception as an error.dispatcher, staticResourceLoader
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER, STRUTS_ACTION_TAG_INVOCATION, STRUTS_PORTLET_CONTEXT
Constructor and Description |
---|
FilterDispatcherCompatWeblogic61()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
javax.servlet.FilterConfig |
getFilterConfig()
Deprecated.
This method is required by Weblogic 6.1 SP4 because
they defined this as a required method just before
the Servlet 2.3 specification was finalized.
|
protected javax.servlet.ServletContext |
getServletContext(javax.servlet.http.HttpSession session)
Deprecated.
answers the servlet context.
|
void |
setFilterConfig(javax.servlet.FilterConfig filterConfig)
Deprecated.
dummy setter for
FilterDispatcher.filterConfig ; this method
sets up the ServletContextSingleton with
the servlet context from the filter configuration. |
createDispatcher, createDispatcher, destroy, doFilter, getDevModeOverride, getServletContext, init, overrideDevMode, prepareDispatcherAndWrapRequest, setActionMapper, setStaticResourceLoader
public FilterDispatcherCompatWeblogic61()
public void setFilterConfig(javax.servlet.FilterConfig filterConfig)
FilterDispatcher.filterConfig
; this method
sets up the ServletContextSingleton
with
the servlet context from the filter configuration.
This is needed by Weblogic Server 6.1 because it
uses a slightly obsolete Servlet 2.3-minus spec
whose Filter
interface requires this method.
filterConfig
- the filter configuration.protected javax.servlet.ServletContext getServletContext(javax.servlet.http.HttpSession session)
setFilterConfig(FilterConfig)
.session
- the HTTP session. Not usedpublic javax.servlet.FilterConfig getFilterConfig()
getFilterConfig
in class FilterDispatcher
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.