Class BaseServletModuleDescriptor<T>

java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.plugin.servlet.descriptors.BaseServletModuleDescriptor<T>
All Implemented Interfaces:
ModuleDescriptor<T>, Resourced, ScopeAware, StateAware
Direct Known Subclasses:
ServletFilterModuleDescriptor, ServletModuleDescriptor

public abstract class BaseServletModuleDescriptor<T> extends AbstractModuleDescriptor<T>
Acts as a base for other servlet type module descriptors to inherit. It adds parsing and retrieval of any paths declared in the descriptor with <url-pattern> as well as <init-param>s.
Since:
2.1.0
  • Field Details

    • log

      protected static final org.slf4j.Logger log
  • Constructor Details

    • BaseServletModuleDescriptor

      public BaseServletModuleDescriptor(ModuleFactory moduleCreator)
      Parameters:
      moduleCreator - a factory for creating this descriptor's module
      Since:
      2.5.0
  • Method Details

    • init

      public void init(@Nonnull Plugin plugin, @Nonnull Element element)
      Specified by:
      init in interface ModuleDescriptor<T>
      Overrides:
      init in class AbstractModuleDescriptor<T>
    • validate

      protected void validate(Element element)
      Overrides:
      validate in class AbstractModuleDescriptor<T>
    • getPaths

      public List<String> getPaths()
    • getInitParams

      public Map<String,String> getInitParams()
    • isAsyncSupported

      public boolean isAsyncSupported()
      Since:
      4.6.0
    • getDefaultAsyncSupported

      protected boolean getDefaultAsyncSupported()
      Allows subclasses to override the default &lt;async-supported/&gt; setting for this descriptor. If a derived class does not override this method, the default will be false.

      Note: This method is called by the constructor, so other properties, like AbstractModuleDescriptor.getCompleteKey(), are not available when this runs.

      Returns:
      false
      Since:
      5.8.0