public class

ServletModuleDescriptor

extends BaseServletModuleDescriptor<T>
implements StateAware
java.lang.Object
   ↳ com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
     ↳ com.atlassian.plugin.servlet.descriptors.BaseServletModuleDescriptor<T>
       ↳ com.atlassian.plugin.servlet.descriptors.ServletModuleDescriptor

Class Overview

A module descriptor that allows plugin developers to define servlets. Developers can define what urls the servlet should be serve by defining one or more <url-pattern> elements.

Summary

[Expand]
Inherited Fields
From class com.atlassian.plugin.servlet.descriptors.BaseServletModuleDescriptor
From class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
Public Constructors
ServletModuleDescriptor(ModuleFactory moduleFactory, ServletModuleManager servletModuleManager)
Creates a descriptor that uses a module factory to create instances
Public Methods
void disabled()
Disables the module descriptor.
void enabled()
Enables the descriptor by loading the module class.
HttpServlet getModule()
The particular module object created by this plugin.
@Deprecated HttpServlet getServlet()
This method is deprecated. Since 2.0.0, use getModule()
[Expand]
Inherited Methods
From class com.atlassian.plugin.servlet.descriptors.BaseServletModuleDescriptor
From class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
From class java.lang.Object
From interface com.atlassian.plugin.ModuleDescriptor
From interface com.atlassian.plugin.Resourced
From interface com.atlassian.plugin.StateAware

Public Constructors

public ServletModuleDescriptor (ModuleFactory moduleFactory, ServletModuleManager servletModuleManager)

Creates a descriptor that uses a module factory to create instances

Public Methods

public void disabled ()

Disables the module descriptor. Classes overriding this method MUST call super.disabled() after their own disabling code.

public void enabled ()

Enables the descriptor by loading the module class. Classes overriding this method MUST call super.enabled() before their own enabling code.

public HttpServlet getModule ()

The particular module object created by this plugin.

Returns
  • The module object created by this plugin.

@Deprecated public HttpServlet getServlet ()

This method is deprecated.
Since 2.0.0, use getModule()