Package org.gcube.smartgears.extensions
Interface ApplicationExtension
- All Superinterfaces:
jakarta.servlet.Servlet
- All Known Implementing Classes:
ApiResource,ConfigurationResource,FrontPageResource,HealthResource,HttpController,HttpExtension,LifecycleResource,MetricsResource,ProfileResource,RemoteResource
public interface ApplicationExtension
extends jakarta.servlet.Servlet
A servlet that allows remote management of the application.
- Author:
- Fabio Simeoni, Luca Frosini (ISTI-CNR)
-
Method Summary
Modifier and TypeMethodDescriptionexcludes()Returns the set of request paths that should be excluded from request management.voidinit(ApplicationContext context) Initialises the extensions with the context of the application.mapping()Returns the mapping of this extension.name()Returns the name of this extension.voidstop()Stops the extension and releases any resources.Methods inherited from interface jakarta.servlet.Servlet
destroy, getServletConfig, getServletInfo, init, service
-
Method Details
-
init
Initialises the extensions with the context of the application.- Parameters:
context- the application context- Throws:
Exception- if the extension cannot be initialised
-
stop
void stop()Stops the extension and releases any resources. -
name
String name()Returns the name of this extension.- Returns:
- the name
-
mapping
String mapping()Returns the mapping of this extension.- Returns:
- the mapping
-
excludes
Set<GCubeExclude> excludes()Returns the set of request paths that should be excluded from request management.- Returns:
- the set of request paths that should be excluded from request management
-