Package org.gcube.smartgears.extensions
Class HttpExtension
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.gcube.smartgears.extensions.HttpExtension
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable,ApplicationExtension
- Direct Known Subclasses:
ApiResource,HttpController
public abstract class HttpExtension
extends jakarta.servlet.http.HttpServlet
implements ApplicationExtension
An
ApplicationExtension that implements the HttpServlet interface- Author:
- Fabio Simeoni
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ApplicationContextcontext()excludes()Returns the set of request paths that should be excluded from request management.final voidinit()voidinit(ApplicationContext context) Initialises the extensions with the context of the application.mapping()Returns the mapping of this extension.voidname()Returns the name of this extension.voidvoidstop()Stops the extension and releases any resources.Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, logMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.Servlet
destroy, getServletConfig, getServletInfo, init, service
-
Constructor Details
-
HttpExtension
protected HttpExtension() -
HttpExtension
-
-
Method Details
-
init
public final void init() throws jakarta.servlet.ServletException- Overrides:
initin classjakarta.servlet.GenericServlet- Throws:
jakarta.servlet.ServletException
-
init
Description copied from interface:ApplicationExtensionInitialises the extensions with the context of the application.- Specified by:
initin interfaceApplicationExtension- Parameters:
context- the application context- Throws:
Exception- if the extension cannot be initialised
-
stop
public void stop()Description copied from interface:ApplicationExtensionStops the extension and releases any resources.- Specified by:
stopin interfaceApplicationExtension
-
excludes
Description copied from interface:ApplicationExtensionReturns the set of request paths that should be excluded from request management.- Specified by:
excludesin interfaceApplicationExtension- Returns:
- the set of request paths that should be excluded from request management
-
context
-
name
Description copied from interface:ApplicationExtensionReturns the name of this extension.- Specified by:
namein interfaceApplicationExtension- Returns:
- the name
-
name
-
mapping
Description copied from interface:ApplicationExtensionReturns the mapping of this extension.- Specified by:
mappingin interfaceApplicationExtension- Returns:
- the mapping
-
mapping
-