org.springframework.webflow.samples.booking
Class HotelsController

java.lang.Object
  extended by org.springframework.webflow.samples.booking.HotelsController

@Controller
public class HotelsController
extends Object


Constructor Summary
HotelsController(TravelService travelService)
           
 
Method Summary
 String addHotel(Hotel hotel)
           
 String getHotel(Long id, org.springframework.ui.Model model)
           
 void getHotels(SearchCriteria criteria, org.springframework.ui.Model model)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelsController

public HotelsController(TravelService travelService)
Method Detail

getHotels

@RequestMapping(value="/hotels")
public void getHotels(SearchCriteria criteria,
                                     org.springframework.ui.Model model)

getHotel

@RequestMapping(value="/hotels/{id}")
public String getHotel(@PathVariable(value="id")
                                      Long id,
                                      org.springframework.ui.Model model)

addHotel

@RequestMapping(value="/hotels/new",
                method=POST)
public String addHotel(Hotel hotel)


Copyright © 2009 SpringSource, Inc. All Rights Reserved.