Exemple #1
0
 // tag::index2[]
 @View
 @Route("/show/{location}")
 public Response.Content index(String location) {
   Map<String, Object> parameters = new HashMap<String, Object>();
   parameters.put("location", location);
   parameters.put("temperature", weatherService.getTemperature(location));
   return index.with(parameters).ok();
 }
Exemple #2
0
 @View
 public Response.Content index() {
   return index.ok();
 }
Exemple #3
0
 @View
 public void index() {
   index.render();
 }
Exemple #4
0
 @View
 @Route("/")
 public Response.Content index() {
   return index.ok();
 }
 @View
 public Response.Content index() throws IOException {
   return index.ok();
 }