Interface UserServiceAjaxResponse
public interface UserServiceAjaxResponse
This interface provides methods to generate a response when processing
an Ajax request.
- Since:
- 5.8.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an error message to the message box.void
Adds an information message to the message box.void
addMessage
(UserMessage aMessage) Adds a message to the message box according to its severity.void
addWarning
(String aMessage) Adds a warning message to the message box.Returns the writer to use to add HTML or data to the response.
-
Method Details
-
getWriter
UserServiceWriter getWriter()Returns the writer to use to add HTML or data to the response.- Returns:
- the writer. Is never
null
.
-
addMessage
Adds a message to the message box according to its severity.- Parameters:
aMessage
- the message.
-
addError
Adds an error message to the message box.- Parameters:
aMessage
- the message.- See Also:
-
addWarning
Adds a warning message to the message box.- Parameters:
aMessage
- the message.- See Also:
-
addInfo
Adds an information message to the message box.- Parameters:
aMessage
- the message.- See Also:
-