Examples of produces()


Examples of com.wordnik.swagger.annotations.ApiOperation.produces()

    if (handlerMethodHasFileParameter(context, swaggerGlobalSettings)) {
      //Swagger spec requires consumes is multipart/form-data for file parameter types
      consumesList = Arrays.asList("multipart/form-data");
    }

    if (null != annotation && !isBlank(annotation.produces())) {
      producesList = asList(annotation.produces());
    }

    context.put("consumes", consumesList);
    context.put("produces", producesList);
View Full Code Here

Examples of com.wordnik.swagger.annotations.ApiOperation.produces()

      //Swagger spec requires consumes is multipart/form-data for file parameter types
      consumesList = Arrays.asList("multipart/form-data");
    }

    if (null != annotation && !isBlank(annotation.produces())) {
      producesList = asList(annotation.produces());
    }

    context.put("consumes", consumesList);
    context.put("produces", producesList);
  }
View Full Code Here

Examples of com.wordnik.swagger.model.Operation.produces()

        "summary by the test swagger test filter",
        operation.notes(),
        operation.responseClass(),
        operation.nickname(),
        operation.position(),
        operation.produces(),
        operation.consumes(),
        operation.protocols(),
        operation.authorizations(),
        operation.parameters(),
        operation.responseMessages(),
View Full Code Here

Examples of ec.BreedingPipeline.produces()

                    state.output.fatal("Subpopulation " + subpop + " does not implement the Space interface.");
                Space space = (Space)(state.population.subpops[subpop]);
                                                       
                // check to make sure that the breeding pipeline produces
                // the right kind of individuals.  Don't want a mistake there! :-)
                if (!bp.produces(state,newpop,subpop,threadnum))
                    state.output.fatal("The Breeding Pipeline of subpopulation " + subpop + " does not produce individuals of the expected species " + newpop.subpops[subpop].species.getClass().getName() + " or fitness " + newpop.subpops[subpop].species.f_prototype );
                bp.prepareToProduce(state,subpop,threadnum);
                                                       
                // start breedin'!
                for(int x = from[subpop]; x < from[subpop] + numinds[subpop]; x++)
View Full Code Here

Examples of ec.BreedingPipeline.produces()

                    bp = (BreedingPipeline)newpop.subpops[subpop].species.pipe_prototype;
                                       
                // check to make sure that the breeding pipeline produces
                // the right kind of individuals.  Don't want a mistake there! :-)
                int x;
                if (!bp.produces(state,newpop,subpop,threadnum))
                    state.output.fatal("The Breeding Pipeline of subpopulation " + subpop + " does not produce individuals of the expected species " + newpop.subpops[subpop].species.getClass().getName() + " or fitness " + newpop.subpops[subpop].species.f_prototype );
                bp.prepareToProduce(state,subpop,threadnum);
                                       
                // start breedin'!
                                       
View Full Code Here

Examples of org.exoplatform.services.rest.resource.ResourceMethodDescriptor.produces()

      int n = 0, p = 0;
      for (ListIterator<T> i = methods.listIterator(); i.hasNext();)
      {
         n = i.nextIndex();
         ResourceMethodDescriptor rmd = i.next();
         float qValue = MediaTypeHelper.processQuality(acceptable, rmd.produces());
         if (qValue > previousQValue)
         {
            previousQValue = qValue;
            p = n; // position of the best resource at the moment
         }
View Full Code Here

Examples of org.exoplatform.services.rest.resource.ResourceMethodDescriptor.produces()

      int n = 0, p = 0;
      for (ListIterator<T> i = methods.listIterator(); i.hasNext();)
      {
         n = i.nextIndex();
         ResourceMethodDescriptor rmd = i.next();
         float qValue = MediaTypeHelper.processQuality(acceptable, rmd.produces());
         if (qValue > previousQValue)
         {
            previousQValue = qValue;
            p = n; // position of the best resource at the moment
         }
View Full Code Here

Examples of org.exoplatform.services.rest.resource.ResourceMethodDescriptor.produces()

      int n = 0, p = 0;
      for (ListIterator<T> i = methods.listIterator(); i.hasNext();)
      {
         n = i.nextIndex();
         ResourceMethodDescriptor rmd = i.next();
         float qValue = MediaTypeHelper.processQuality(acceptable, rmd.produces());
         if (qValue > previousQValue)
         {
            previousQValue = qValue;
            p = n; // position of the best resource at the moment
         }
View Full Code Here

Examples of org.exoplatform.services.rest.resource.ResourceMethodDescriptor.produces()

      int n = 0, p = 0;
      for (ListIterator<T> i = methods.listIterator(); i.hasNext();)
      {
         n = i.nextIndex();
         ResourceMethodDescriptor rmd = i.next();
         float qValue = MediaTypeHelper.processQuality(acceptable, rmd.produces());
         if (qValue > previousQValue)
         {
            previousQValue = qValue;
            p = n; // position of the best resource at the moment
         }
View Full Code Here

Examples of org.exoplatform.services.rest.resource.ResourceMethodDescriptor.produces()

      int n = 0, p = 0;
      for (ListIterator<T> i = methods.listIterator(); i.hasNext();)
      {
         n = i.nextIndex();
         ResourceMethodDescriptor rmd = i.next();
         float qValue = MediaTypeHelper.processQuality(acceptable, rmd.produces());
         if (qValue > previousQValue)
         {
            previousQValue = qValue;
            p = n; // position of the best resource at the moment
         }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.