org.gcube.smartgears.extensions.resource
Class ScopesResource
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.ScopesResource
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, ApplicationExtension
public class ScopesResource
- extends ApiResource
An ApiResource of RemoteResource at mapping.
- Author:
- Fabio Simeoni
- See Also:
- Serialized Form
|
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)
|
void |
init(ApplicationContext context)
Initialises the extensions with the context of the application. |
boolean |
supports(HttpExtension.Method method)
Returns true if this resource supports a given method. |
| 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 |
mapping
public static final String mapping
- See Also:
- Constant Field Values
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
init
public void init(ApplicationContext context)
throws Exception
- Description copied from interface:
ApplicationExtension
- Initialises the extensions with the context of the application.
- Specified by:
init in interface ApplicationExtension- Overrides:
init in class HttpExtension
- Parameters:
context - the application context
- Throws:
Exception - if the extension cannot be initialised
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 © 2013. All Rights Reserved.