com.atlassian.plugin.servlet.ServletModuleManager |
Known Indirect Subclasses |
The ServletModuleManager is responsible for servlets and filters - and their servlet contexts - defined in plugins.
It is used by instances of the ServletModuleContainerServlet
and ServletFilterModuleContainerFilter
to lookup, create and wrap the filters and servlets defined in plugins.
ClassLoader
.
The plugins ServletContext is not destroyed until the plugin is disabled. It is also at this time that any
ServletContextListeners will have their contextDestroyed() methods called.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Register a new filter plugin module.
| |||||||||||
Register a new servlet plugin module.
| |||||||||||
This method is deprecated.
Since 2.5.0, use
getFilters(FilterLocation, String, FilterConfig, FilterDispatcherCondition) instead
| |||||||||||
Returns the filters that have been registered to filter requests at the specified path matching the location
in the filter stack and registered for the specific dispatcher condition.
| |||||||||||
Return an instance of the HttpServlet that should be used to serve content matching the provided url path.
| |||||||||||
Remove a previously registered filter plugin module.
| |||||||||||
Remove a previously registered servlet plugin module.
|
Register a new filter plugin module.
descriptor | Details of what the filter class is and the path it should serve. |
---|
Register a new servlet plugin module.
descriptor | Details of what the servlet class is and the path it should serve. |
---|
This method is deprecated.
Since 2.5.0, use getFilters(FilterLocation, String, FilterConfig, FilterDispatcherCondition)
instead
Returns the filters that have been registered to filter requests at the specified path matching the location in the filter stack. The filter dispatcher condition will be set to REQUEST.
location | Place in the applications filter stack the filters should be applied. |
---|---|
pathInfo | Path of the incoming request to filter. |
filterConfig | FilterConfig given to the delegating filter. |
ServletException | Thrown if there is a problem initializing one of the filters to apply. |
---|
Returns the filters that have been registered to filter requests at the specified path matching the location in the filter stack and registered for the specific dispatcher condition.
location | Place in the applications filter stack the filters should be applied. |
---|---|
pathInfo | Path of the incoming request to filter. |
filterConfig | FilterConfig given to the delegating filter. |
condition | The dispatcher tag that filters have been registered to. Cannot be null. |
ServletException | Thrown if there is a problem initializing one of the filters to apply. |
---|
Return an instance of the HttpServlet that should be used to serve content matching the provided url path.
path | Path of the incoming request to serve. |
---|---|
servletConfig | ServletConfig given to the delegating servlet. |
ServletException | Thrown if there is a problem initializing the servlet to be returned. |
---|
Remove a previously registered filter plugin module. Requests that come in on the path described in the descriptor will no longer be served.
descriptor | Details of what filter module to remove. |
---|
Remove a previously registered servlet plugin module. Requests that come in on the path described in the descriptor will no longer be served.
descriptor | Details of what servlet module to remove. |
---|