org.gcube.smartgears.extensions.resource
Class LifecycleResource

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.gcube.smartgears.extensions.HttpExtension
              extended by org.gcube.smartgears.extensions.ApiResource
                  extended by org.gcube.smartgears.extensions.resource.LifecycleResource
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, ApplicationExtension

public class LifecycleResource
extends ApiResource

An ApiResource of RemoteResource at mapping.

Author:
Fabio Simeoni
See Also:
Serialized Form

Nested Class Summary
static class LifecycleResource.State
           
 
Nested classes/interfaces inherited from class org.gcube.smartgears.extensions.HttpExtension
HttpExtension.Method
 
Field Summary
static String mapping
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 Set<String> excludes()
          Returns the set of request paths that should be excluded from request management.
 boolean supports(HttpExtension.Method method)
          Returns true if this resource supports a given method.
 
Methods inherited from class org.gcube.smartgears.extensions.ApiResource
accepts, doDelete, doHead, doOptions, doPut, doTrace, 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.http.HttpServlet
getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.Servlet
destroy, getServletConfig, getServletInfo, init, service
 

Field Detail

mapping

public static final String mapping
See Also:
Constant Field Values
Method Detail

excludes

public Set<String> excludes()
Description copied from interface: ApplicationExtension
Returns the set of request paths that should be excluded from request management.

Specified by:
excludes in interface ApplicationExtension
Overrides:
excludes in class HttpExtension
Returns:
the set of request paths that should be excluded from request management

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(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse resp)
           throws javax.servlet.ServletException,
                  IOException
Overrides:
doGet in class ApiResource
Throws:
javax.servlet.ServletException
IOException

doPost

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


Copyright © 2014. All Rights Reserved.