public class DefaultRestServletModuleManager extends Object implements RestServletModuleManager
Servlet module manager to handle REST servlets.
| Constructor and Description |
|---|
DefaultRestServletModuleManager(com.atlassian.plugin.event.PluginEventManager pluginEventManager,
String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilterModule(com.atlassian.plugin.servlet.descriptors.ServletFilterModuleDescriptor descriptor) |
void |
addServlet(com.atlassian.plugin.Plugin plugin,
String servletName,
javax.servlet.http.HttpServlet servlet,
javax.servlet.ServletContext servletContext) |
void |
addServlet(com.atlassian.plugin.Plugin plugin,
String servletName,
String className) |
void |
addServletModule(com.atlassian.plugin.servlet.descriptors.ServletModuleDescriptor descriptor) |
Iterable<javax.servlet.Filter> |
getFilters(com.atlassian.plugin.servlet.filter.FilterLocation location,
String pathInfo,
javax.servlet.FilterConfig filterConfig) |
Iterable<javax.servlet.Filter> |
getFilters(com.atlassian.plugin.servlet.filter.FilterLocation location,
String pathInfo,
javax.servlet.FilterConfig filterConfig,
com.atlassian.plugin.servlet.filter.FilterDispatcherCondition filterDispatcherCondition) |
javax.servlet.http.HttpServlet |
getServlet(String path,
javax.servlet.ServletConfig servletConfig) |
void |
removeFilterModule(com.atlassian.plugin.servlet.descriptors.ServletFilterModuleDescriptor descriptor) |
void |
removeServletModule(com.atlassian.plugin.servlet.descriptors.ServletModuleDescriptor descriptor) |
public DefaultRestServletModuleManager(com.atlassian.plugin.event.PluginEventManager pluginEventManager,
String path)
public void addServlet(com.atlassian.plugin.Plugin plugin,
String servletName,
String className)
addServlet in interface com.atlassian.plugin.servlet.ServletModuleManagerpublic void addServlet(com.atlassian.plugin.Plugin plugin,
String servletName,
javax.servlet.http.HttpServlet servlet,
javax.servlet.ServletContext servletContext)
addServlet in interface com.atlassian.plugin.servlet.ServletModuleManagerpublic void addServletModule(com.atlassian.plugin.servlet.descriptors.ServletModuleDescriptor descriptor)
addServletModule in interface com.atlassian.plugin.servlet.ServletModuleManagerpublic javax.servlet.http.HttpServlet getServlet(String path, javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
getServlet in interface com.atlassian.plugin.servlet.ServletModuleManagerjavax.servlet.ServletExceptionpublic void removeServletModule(com.atlassian.plugin.servlet.descriptors.ServletModuleDescriptor descriptor)
removeServletModule in interface com.atlassian.plugin.servlet.ServletModuleManagerpublic void addFilterModule(com.atlassian.plugin.servlet.descriptors.ServletFilterModuleDescriptor descriptor)
addFilterModule in interface com.atlassian.plugin.servlet.ServletModuleManagerpublic Iterable<javax.servlet.Filter> getFilters(com.atlassian.plugin.servlet.filter.FilterLocation location, String pathInfo, javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
getFilters in interface com.atlassian.plugin.servlet.ServletModuleManagerjavax.servlet.ServletExceptionpublic Iterable<javax.servlet.Filter> getFilters(com.atlassian.plugin.servlet.filter.FilterLocation location, String pathInfo, javax.servlet.FilterConfig filterConfig, com.atlassian.plugin.servlet.filter.FilterDispatcherCondition filterDispatcherCondition) throws javax.servlet.ServletException
getFilters in interface com.atlassian.plugin.servlet.ServletModuleManagerjavax.servlet.ServletExceptionpublic void removeFilterModule(com.atlassian.plugin.servlet.descriptors.ServletFilterModuleDescriptor descriptor)
removeFilterModule in interface com.atlassian.plugin.servlet.ServletModuleManagerCopyright © 2016 Atlassian. All rights reserved.