Package org.exoplatform.services.rest.resource

Examples of org.exoplatform.services.rest.resource.SubResourceMethodMap


         this.path = null;
         uriPattern = null;
      }
      this.invokerFactory = invokerFactory;
      this.resourceMethods = new ResourceMethodMap<ResourceMethodDescriptor>();
      this.subResourceMethods = new SubResourceMethodMap();
      this.subResourceLocators = new SubResourceLocatorMap();
      processMethods();
   }
View Full Code Here


         this.path = null;
         uriPattern = null;
      }
      this.invokerFactory = invokerFactory;
      this.resourceMethods = new ResourceMethodMap<ResourceMethodDescriptor>();
      this.subResourceMethods = new SubResourceMethodMap();
      this.subResourceLocators = new SubResourceLocatorMap();
      processMethods();
   }
View Full Code Here

      int len = parameterValues.size();

      // resource method or sub-resource method or sub-resource locator

      ResourceMethodMap<ResourceMethodDescriptor> rmm = resourceFactory.getObjectModel().getResourceMethods();
      SubResourceMethodMap srmm = resourceFactory.getObjectModel().getSubResourceMethods();
      SubResourceLocatorMap srlm = resourceFactory.getObjectModel().getSubResourceLocators();
      if ((parameterValues.get(len - 1) == null || "/".equals(parameterValues.get(len - 1))) && rmm.size() > 0)
      {
         // resource method, then process HTTP method and consume/produce media
         // types
View Full Code Here

            sc = sc.getSuperclass();
         }
      }

      this.resourceMethods = new ResourceMethodMap<ResourceMethodDescriptor>();
      this.subResourceMethods = new SubResourceMethodMap();
      this.subResourceLocators = new SubResourceLocatorMap();
      processMethods();
   }
View Full Code Here

      int len = parameterValues.size();

      // resource method or sub-resource method or sub-resource locator

      ResourceMethodMap<ResourceMethodDescriptor> rmm = resourceFactory.getObjectModel().getResourceMethods();
      SubResourceMethodMap srmm = resourceFactory.getObjectModel().getSubResourceMethods();
      SubResourceLocatorMap srlm = resourceFactory.getObjectModel().getSubResourceLocators();
      if ((parameterValues.get(len - 1) == null || "/".equals(parameterValues.get(len - 1))) && rmm.size() > 0)
      {
         // resource method, then process HTTP method and consume/produce media
         // types
View Full Code Here

      Map<String, Map<String, Param>> wadlCommonSubResourceParams = new HashMap<String, Map<String, Param>>();
      // Mapping resource path to resource.
      Map<String, org.exoplatform.services.rest.wadl.research.Resource> wadlSubResources =
         new HashMap<String, org.exoplatform.services.rest.wadl.research.Resource>();

      SubResourceMethodMap subresourceMethods = resourceDescriptor.getSubResourceMethods();
      for (ResourceMethodMap<SubResourceMethodDescriptor> rmm : subresourceMethods.values())
      {
         for (List<SubResourceMethodDescriptor> l : rmm.values())
         {
            for (SubResourceMethodDescriptor srmd : l)
            {
View Full Code Here

   {
      List<String> parameterValues = context.getParameterValues();
      int len = parameterValues.size();
      // resource method or sub-resource method or sub-resource locator
      ResourceMethodMap<ResourceMethodDescriptor> rmm = resourceFactory.getObjectModel().getResourceMethods();
      SubResourceMethodMap srmm = resourceFactory.getObjectModel().getSubResourceMethods();
      SubResourceLocatorMap srlm = resourceFactory.getObjectModel().getSubResourceLocators();
      if ((parameterValues.get(len - 1) == null || "/".equals(parameterValues.get(len - 1))) && rmm.size() > 0)
      {
         // resource method, then process HTTP method and consume/produce media types
         List<ResourceMethodDescriptor> methods = new ArrayList<ResourceMethodDescriptor>();
View Full Code Here

         this.path = null;
         uriPattern = null;
      }
      this.invokerFactory = invokerFactory;
      this.resourceMethods = new ResourceMethodMap<ResourceMethodDescriptor>();
      this.subResourceMethods = new SubResourceMethodMap();
      this.subResourceLocators = new SubResourceLocatorMap();
      processMethods();
   }
View Full Code Here

      }

      this.invokerFactory = invokerFactory;

      this.resourceMethods = new ResourceMethodMap<ResourceMethodDescriptor>();
      this.subResourceMethods = new SubResourceMethodMap();
      this.subResourceLocators = new SubResourceLocatorMap();
      processMethods();
   }
View Full Code Here

   {
      List<String> parameterValues = context.getParameterValues();
      int len = parameterValues.size();
      // resource method or sub-resource method or sub-resource locator
      ResourceMethodMap<ResourceMethodDescriptor> rmm = resourceFactory.getObjectModel().getResourceMethods();
      SubResourceMethodMap srmm = resourceFactory.getObjectModel().getSubResourceMethods();
      SubResourceLocatorMap srlm = resourceFactory.getObjectModel().getSubResourceLocators();
      if ((parameterValues.get(len - 1) == null || "/".equals(parameterValues.get(len - 1))) && rmm.size() > 0)
      {
         // resource method, then process HTTP method and consume/produce media types
         List<ResourceMethodDescriptor> methods = new ArrayList<ResourceMethodDescriptor>();
View Full Code Here

TOP

Related Classes of org.exoplatform.services.rest.resource.SubResourceMethodMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.