Package br.com.caelum.vraptor.resource

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


  private void vraptor2Forward(ResourceMethod method) throws ServletException,
      IOException {
      logger.debug("Forwading using VRaptor2 URLs");

    String result = info.getResult().toString();
    ResourceClass resource = method.getResource();

    String key = Info.getComponentName(resource.getType()) + "." + Info.getLogicName(method.getMethod()) + "."
        + result;

    String path = config.getForwardFor(key);

    if (path == null) {
View Full Code Here


      }
    });
    }

    public String pathFor(ResourceMethod method) {
        ResourceClass resource = method.getResource();
        if (Info.isOldComponent(resource)) {
            String component = Info.getComponentName(resource.getType());
            String logicName = Info.getLogicName(method.getMethod());
          logger.debug("path for {} - {}", component, logicName);

            return pattern.replaceAll("\\$component", component).replaceAll("\\$logic", logicName).replaceAll("\\$result", info.getResult().toString());
        }
View Full Code Here

TOP

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

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.