org.springframework.samples.petclinic.owners
Class OwnersController
java.lang.Object
org.springframework.samples.petclinic.owners.OwnersController
@Controller
@RequestMapping(value="/owners")
public class OwnersController
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OwnersController
public OwnersController(OwnerRepository repository)
get
@RequestMapping(method=GET)
public OwnerSearchForm get()
getSearchResults
@RequestMapping(value="/search",
method=GET)
public Collection<OwnerSummary> getSearchResults(@RequestParam
String lastName)
getNewForm
@RequestMapping(value="/new",
method=GET)
public OwnerForm getNewForm()
post
@RequestMapping(method=POST)
public String post(OwnerForm owner)
Copyright © 2009 SpringSource, Inc. All Rights Reserved.