|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.ralscha.extdirectspring.bean.ExtDirectResponseBuilder
public class ExtDirectResponseBuilder
An utility class that helps building a ExtDirectResponse. A form
handler must return an instance of such type.
| Constructor Summary | |
|---|---|
ExtDirectResponseBuilder(javax.servlet.http.HttpServletRequest request)
Creates a builder that builds the response object needed for form handler and form upload handler methods. |
|
| Method Summary | |
|---|---|
void |
addErrors(BindingResult bindingResult)
Creates a errors property in the response if there are any errors in the bindingResult Sets the success flag to false if there are errors |
void |
addErrors(Locale locale,
BindingResult bindingResult)
Creates a errors property in the response if there are any errors in the bindingResult Sets the success flag to false if there are errors |
void |
addErrors(Locale locale,
MessageSource messageSource,
BindingResult bindingResult)
Creates a errors property in the response if there are any errors in the bindingResult Sets the success flag to false if there are errors |
void |
addResultProperty(String key,
Object value)
Add additional property to the response |
ExtDirectResponse |
build()
Builds the response object |
void |
buildAndWriteUploadResponse(javax.servlet.http.HttpServletResponse servletResponse)
Builds and writes the response to the OutputStream of the response. |
void |
successful()
Sets success flag to true |
void |
unsuccessful()
Sets success flag to false |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtDirectResponseBuilder(javax.servlet.http.HttpServletRequest request)
request - the current request| Method Detail |
|---|
public void addErrors(BindingResult bindingResult)
bindingResult -
public void addErrors(Locale locale,
BindingResult bindingResult)
locale - bindingResult -
public void addErrors(Locale locale,
MessageSource messageSource,
BindingResult bindingResult)
locale - messageSource - bindingResult -
public void addResultProperty(String key,
Object value)
key - the key of the propertyvalue - the value of this propertypublic void successful()
public void unsuccessful()
public ExtDirectResponse build()
public void buildAndWriteUploadResponse(javax.servlet.http.HttpServletResponse servletResponse)
throws IOException
servletResponse - current servlet response
IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||