Package br.com.caelum.vraptor.resource

Examples of br.com.caelum.vraptor.resource.ResourceMethod


    try {
      method = HttpMethod.of(request);
    } catch (IllegalArgumentException e) {
      throw new MethodNotAllowedException(router.allowedMethodsFor(resourceName), request.getMethod());
    }
    ResourceMethod resource = router.parse(resourceName, method, request);

    logger.debug("found resource {}", resource);
    return resource;
  }
View Full Code Here


  }

  public void is(Class<?> type, Method method) {
    addParametersInfo(method);
    ResourceMethod resourceMethod = DefaultResourceMethod.instanceFor(type, method);
    String[] parameterNames = nameProvider.parameterNamesFor(method);
    this.strategy = new FixedMethodStrategy(originalUri, resourceMethod, this.supportedMethods, builder.build(), priority, parameterNames);

    logger.info(String.format("%-50s%s -> %10s", originalUri,
        this.supportedMethods.isEmpty() ? "[ALL]" : this.supportedMethods,
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.resource.ResourceMethod

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.