org.springframework.samples.petclinic.appointments.web
Class AppointmentsController

java.lang.Object
  extended by org.springframework.samples.petclinic.appointments.web.AppointmentsController

@Controller
@RequestMapping(value="/appointments")
public class AppointmentsController
extends Object


Constructor Summary
AppointmentsController(AppointmentBook appointmentBook)
           
 
Method Summary
 void configureBinder(org.springframework.web.bind.WebDataBinder binder)
           
 Appointments get()
           
 void getForDay(Date day, ExternalContext context)
           
 AppointmentForm getNewForm()
           
 String post(AppointmentForm form)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppointmentsController

public AppointmentsController(AppointmentBook appointmentBook)
Method Detail

configureBinder

@InitBinder
public void configureBinder(org.springframework.web.bind.WebDataBinder binder)

get

@RequestMapping(method=GET)
public Appointments get()

getForDay

@RequestMapping(value="/{day}",
                method=GET)
public void getForDay(@PathVariable
                                     Date day,
                                     ExternalContext context)

getNewForm

@RequestMapping(value="/new",
                method=GET)
public AppointmentForm getNewForm()

post

@RequestMapping(method=POST)
public String post(AppointmentForm form)


Copyright © 2009 SpringSource, Inc. All Rights Reserved.