Package br.com.caelum.vraptor.http.route

Examples of br.com.caelum.vraptor.http.route.Route


    String[] urIsFor = super.getURIsFor(javaMethod, type);
   
    for (int i = 0; i < urIsFor.length; i++) {
      for (ResourceBundle bundle : routesResource.getAvailableBundles()) {
        if(bundle.containsKey(urIsFor[i])) {
          Route translatedRouteWithLocalePrefix = buildWithLocalePrefix(javaMethod, type, bundle.getString(urIsFor[i]), bundle.getLocale());
          routes.add(translatedRouteWithLocalePrefix);
        }
      }
     
      Route defaultRouteWithLocalePrefix = buildWithLocalePrefix(javaMethod, type, urIsFor[i], Locale.getDefault());
      routes.add(defaultRouteWithLocalePrefix);
    }
   
    return urIsFor;
  }
View Full Code Here


    String[] urIsFor = super.getURIsFor(javaMethod, type);
   
    for (int i = 0; i < urIsFor.length; i++) {
      for (ResourceBundle bundle : routesResource.getAvailableBundles()) {
        if(bundle.containsKey(urIsFor[i])) {
          Route translatedRouteWithLocalePrefix = buildWithLocalePrefix(javaMethod, type, bundle.getString(urIsFor[i]), bundle.getLocale());
          routes.add(translatedRouteWithLocalePrefix);
        }
      }
     
      Route defaultRouteWithLocalePrefix = buildWithLocalePrefix(javaMethod, type, urIsFor[i], Locale.getDefault());
      routes.add(defaultRouteWithLocalePrefix);
    }
   
    return urIsFor;
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.http.route.Route

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.