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
public class HealthResource extends ApiResource
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.gcube.smartgears.extensions.HttpExtension
HttpExtension.Method
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)voidinit(ApplicationContext context)Initialises the extensions with the context of the application.HealthResponsereadiness()voidstop()-
Methods inherited from class org.gcube.smartgears.extensions.ApiResource
accepts, doDelete, doHead, doOptions, doPost, doPut, doTrace, excludes, handles, method, produces, signature, supports
-
Methods inherited from class org.gcube.smartgears.extensions.HttpExtension
context, init, mapping, mapping, name, name
-
Methods inherited from class jakarta.servlet.http.HttpServlet
getLastModified, init, service, service
-
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
-
-
-
-
Field Detail
-
mapping
public static final String mapping
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(ApplicationContext context) throws Exception
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()
- 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
public HealthResponse readiness()
-
-