org.gcube.smartgears.extensions.resource
Class ScopesResource

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.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

Nested Class Summary
static class ScopesResource.Scope
           
static class ScopesResource.Scopes
           
 
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)
           
 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 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, excludes, 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

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.