@RequestMapping("/car/{id}/owner/{username}")
public Map<String,Object> getCar(@PathVariable("id") Integer id,
@PathVariable("username") String name,
@PathVariable Map<String,String> pv)
{
Map map=new HashMap();
map.put("id", id);
map.put("username", name);
map.put("pv", pv);
return map;
}
@RequestMapping("car")
public Map<String,Object> getCar(@RequestHeader("User-Agent") String userAgent,
@RequestHeader Map<String,String> header)
{
Map map=new HashMap();
map.put("userAgent", userAgent);
map.put("header",header);
return map;
}
@RequestMapping("car")
public Map<String,Object> getCar(@CookieValue("_ga") Cookie cookie)
{
Map map=new HashMap();
map.put("cookie", cookie.getValue());
return map;
}