Class LifecycleResource
- 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.LifecycleResource
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable,ApplicationExtension
public class LifecycleResource extends ApiResource
- Author:
- Fabio Simeoni
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLifecycleResource.State-
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)voiddoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)booleansupports(HttpExtension.Method method)Returnstrueif this resource supports a given method.-
Methods inherited from class org.gcube.smartgears.extensions.ApiResource
accepts, doDelete, doHead, doOptions, doPut, doTrace, excludes, handles, method, produces, signature
-
Methods inherited from class org.gcube.smartgears.extensions.HttpExtension
context, init, init, mapping, mapping, name, name, stop
-
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
-
supports
public boolean supports(HttpExtension.Method method)
Description copied from class:ApiResourceReturnstrueif this resource supports a given method.- Overrides:
supportsin classApiResource- Parameters:
method- the method- Returns:
trueif this resource supports the given method
-
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
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException- Overrides:
doPostin classApiResource- Throws:
jakarta.servlet.ServletExceptionIOException
-
-