org.springframework.security.oauth.examples.sparklr.mvc
Class PhotoController
java.lang.Object
org.springframework.security.oauth.examples.sparklr.mvc.PhotoController
@Controller
public class PhotoController
- extends Object
Controller for managing the lists of controllers for a person.
- Author:
- Ryan Heaton, Dave Syer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PhotoController
public PhotoController()
getJsonPhotos
@RequestMapping(value="/photos",
params="format=json")
@ResponseBody
public org.springframework.http.ResponseEntity<String> getJsonPhotos(@RequestParam(required=false)
String callback)
throws Exception
- Throws:
Exception
getXmlPhotos
@RequestMapping(value="/photos",
params="format=xml")
@ResponseBody
public org.springframework.http.ResponseEntity<String> getXmlPhotos()
throws Exception
- Throws:
Exception
getPhoto
@RequestMapping(value="/photos/{photoId}")
public org.springframework.http.ResponseEntity<byte[]> getPhoto(@PathVariable(value="photoId")
String id)
throws IOException
- Throws:
IOException
setPhotoService
public void setPhotoService(PhotoService photoService)
Copyright © 2012. All Rights Reserved.