Class MessageResponder
java.lang.Object
com.atlassian.jira.web.action.message.MessageResponder
Prepares a response to an action. The response will contain messages and redirection.
- Since:
- v6.4
-
Constructor Summary
ConstructorsConstructorDescriptionMessageResponder
(SoyTemplateRendererProvider rendererProvider, com.atlassian.adapter.jackson.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
respond
(Iterable<PopUpMessage> messages, URI redirect, JiraWebActionSupport action, String title) Guarantees that given messages will be shown to the user and user will be be able to follow the redirect.
-
Constructor Details
-
MessageResponder
public MessageResponder(SoyTemplateRendererProvider rendererProvider, com.atlassian.adapter.jackson.ObjectMapper objectMapper)
-
-
Method Details
-
respond
public final String respond(Iterable<PopUpMessage> messages, URI redirect, JiraWebActionSupport action, String title) Guarantees that given messages will be shown to the user and user will be be able to follow the redirect. It might modify the response headers and start sending the response body.- Parameters:
messages
- information for the user about the outcome of the actionredirect
- redirects to the next page the user should see; SHOULD NOT contain personal informationaction
- performed actiontitle
- human-readable, short description of the action- Returns:
- one of the standard
Action
view names
-