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
- Author:
- Fabio Simeoni
- See Also:
-
Nested Class Summary
Nested ClassesNested 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) 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, signatureMethods inherited from class org.gcube.smartgears.extensions.HttpExtension
context, init, init, mapping, mapping, name, name, stopMethods 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
-
supports
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
-