FileDocCategorySizeDatePackage
BikesController.javaAPI DocExample669Sat Apr 23 20:37:36 BST 2005com.springbook

BikesController.java

package com.springbook;

import org.springframework.web.servlet.mvc.Controller;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletRequest;


public class BikesController implements Controller {
    private RentABike facade;

    public RentABike getFacade() {
        return facade;
    }

    public void setFacade(RentABike facade) {
        this.facade = facade;
    }

    public ModelAndView handleRequest(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {
        return new ModelAndView("bikes", "rentaBike", facade);
    }
}