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:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class org.gcube.smartgears.extensions.HttpExtension

    HttpExtension.Method
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    void
    doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    boolean
    Returns true if 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface jakarta.servlet.Servlet

    destroy, getServletConfig, getServletInfo, init, service
  • Field Details

  • Method Details

    • supports

      public boolean supports(HttpExtension.Method method)
      Description copied from class: ApiResource
      Returns true if this resource supports a given method.
      Overrides:
      supports in class ApiResource
      Parameters:
      method - the method
      Returns:
      true if 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:
      doGet in class ApiResource
      Throws:
      jakarta.servlet.ServletException
      IOException
    • doPost

      public void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException
      Overrides:
      doPost in class ApiResource
      Throws:
      jakarta.servlet.ServletException
      IOException