Class LifecycleResource
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.gcube.smartgears.extensions.HttpExtension
-
- org.gcube.smartgears.extensions.ApiResource
-
- org.gcube.smartgears.extensions.resource.LifecycleResource
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig,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(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)voiddoPost(javax.servlet.http.HttpServletRequest req, javax.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
-
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, 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(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException- Overrides:
doGetin classApiResource- Throws:
javax.servlet.ServletExceptionIOException
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException- Overrides:
doPostin classApiResource- Throws:
javax.servlet.ServletExceptionIOException
-
-