Пример #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();
 }
Пример #2
0
Файл: A.java Проект: haint/juzu
 @View
 public Response.Content index() {
   return index.ok();
 }
Пример #3
0
 @View
 public void index() {
   index.render();
 }
Пример #4
0
 @View
 @Route("/")
 public Response.Content index() {
   return index.ok();
 }
Пример #5
0
 @View
 public Response.Content index() throws IOException {
   return index.ok();
 }