Class HealthResource
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.gcube.smartgears.extensions.HttpExtension
org.gcube.smartgears.extensions.ApiResource
org.gcube.smartgears.extensions.resource.HealthResource
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable,ApplicationExtension
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.gcube.smartgears.extensions.HttpExtension
HttpExtension.Method -
Field Summary
FieldsFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) voidinit(ApplicationContext context) Initialises the extensions with the context of the application.voidstop()Stops the extension and releases any resources.Methods inherited from class org.gcube.smartgears.extensions.ApiResource
accepts, doDelete, doHead, doOptions, doPost, doPut, doTrace, excludes, handles, method, produces, signature, supportsMethods inherited from class org.gcube.smartgears.extensions.HttpExtension
context, init, mapping, mapping, name, nameMethods inherited from class jakarta.servlet.http.HttpServlet
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
-
Field Details
-
mapping
- See Also:
-
-
Method Details
-
init
Description copied from interface:ApplicationExtensionInitialises the extensions with the context of the application.- Specified by:
initin interfaceApplicationExtension- Overrides:
initin classHttpExtension- 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- Overrides:
stopin classHttpExtension
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
doGetin classApiResource- Throws:
jakarta.servlet.ServletExceptionIOException
-
readiness
-