|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.samples.petportal.portlet.PetDescriptionUploadController
@Controller @RequestMapping(value="VIEW") public class PetDescriptionUploadController
This Controller demonstrates multipart file uploads. In this case, an uploaded text file will be used as the description for a Pet.
Constructor Summary | |
---|---|
PetDescriptionUploadController()
|
Method Summary | |
---|---|
java.util.SortedSet |
getPets()
|
void |
processUpload(PetDescription upload,
int petKey)
On submit, set the description property for the selected Pet as a String. |
void |
registerMultipartEditor(org.springframework.web.bind.WebDataBinder binder)
Register the PropertyEditor for converting from a MultipartFile to an array of bytes. |
void |
setPetService(PetService petService)
|
java.lang.String |
showUploadForm()
If there are no Pets, display the 'noPetsForUpload' view. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PetDescriptionUploadController()
Method Detail |
---|
public void setPetService(PetService petService)
@ModelAttribute(value="pets") public java.util.SortedSet getPets()
@InitBinder public void registerMultipartEditor(org.springframework.web.bind.WebDataBinder binder)
@RequestMapping public java.lang.String showUploadForm()
@RequestMapping public void processUpload(PetDescription upload, @RequestParam(value="selectedPet") int petKey)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |