com.atlassian.plugins.rest.module.servlet
Class DefaultRestServletModuleManager

java.lang.Object
  extended by com.atlassian.plugins.rest.module.servlet.DefaultRestServletModuleManager
All Implemented Interfaces:
com.atlassian.plugin.servlet.ServletModuleManager, RestServletModuleManager

public class DefaultRestServletModuleManager
extends Object
implements RestServletModuleManager

Servlet module manager to handle REST servlets.


Constructor Summary
DefaultRestServletModuleManager(com.atlassian.plugin.event.PluginEventManager pluginEventManager, String path)
           
 
Method Summary
 void addFilterModule(com.atlassian.plugin.servlet.descriptors.ServletFilterModuleDescriptor descriptor)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRestServletModuleManager

public DefaultRestServletModuleManager(com.atlassian.plugin.event.PluginEventManager pluginEventManager,
                                       String path)
Method Detail

addServletModule

public void addServletModule(com.atlassian.plugin.servlet.descriptors.ServletModuleDescriptor descriptor)
Specified by:
addServletModule in interface com.atlassian.plugin.servlet.ServletModuleManager

getServlet

public javax.servlet.http.HttpServlet getServlet(String path,
                                                 javax.servlet.ServletConfig servletConfig)
                                          throws javax.servlet.ServletException
Specified by:
getServlet in interface com.atlassian.plugin.servlet.ServletModuleManager
Throws:
javax.servlet.ServletException

removeServletModule

public void removeServletModule(com.atlassian.plugin.servlet.descriptors.ServletModuleDescriptor descriptor)
Specified by:
removeServletModule in interface com.atlassian.plugin.servlet.ServletModuleManager

addFilterModule

public void addFilterModule(com.atlassian.plugin.servlet.descriptors.ServletFilterModuleDescriptor descriptor)
Specified by:
addFilterModule in interface com.atlassian.plugin.servlet.ServletModuleManager

getFilters

public Iterable<javax.servlet.Filter> getFilters(com.atlassian.plugin.servlet.filter.FilterLocation location,
                                                 String pathInfo,
                                                 javax.servlet.FilterConfig filterConfig)
                                          throws javax.servlet.ServletException
Specified by:
getFilters in interface com.atlassian.plugin.servlet.ServletModuleManager
Throws:
javax.servlet.ServletException

getFilters

public 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
Specified by:
getFilters in interface com.atlassian.plugin.servlet.ServletModuleManager
Throws:
javax.servlet.ServletException

removeFilterModule

public void removeFilterModule(com.atlassian.plugin.servlet.descriptors.ServletFilterModuleDescriptor descriptor)
Specified by:
removeFilterModule in interface com.atlassian.plugin.servlet.ServletModuleManager


Copyright © 2014 Atlassian. All Rights Reserved.