Class ReturnUrlBean
java.lang.Object
jp.ecuacion.splib.web.bean.ReturnUrlBean
Returns the URL to redirect / forward pages to use as the return string in
@RequestMapping, @GetMapping and @PostMapping methods.-
Constructor Summary
ConstructorsConstructorDescriptionReturnUrlBean(String path) Constructs a new instance with explicit path.ReturnUrlBean(SplibGeneralController<?> controller, SplibUtil util) Constructs a new instance with controller, util.ReturnUrlBean(SplibGeneralController<?> controller, SplibUtil util, boolean isNormalEnd) Constructs a new instance with controller, util, isNormalEnd.ReturnUrlBean(SplibGeneralController<?> controller, SplibUtil util, boolean isNormalEnd, String page) Constructs a new instance with controller, util, page.ReturnUrlBean(SplibGeneralController<?> controller, SplibUtil util, String page) Constructs a new instance with controller, util, page.ReturnUrlBean(SplibGeneralController<?> controller, SplibUtil util, String subFunction, String page) Constructs a new instance with controller, util, subFunction, page. -
Method Summary
Modifier and TypeMethodDescriptiongetUrl()Returns the URL.booleanAdds the argument parameter toparamMap.Adds the argument parameter toparamMap.putParamMap(Map<String, String[]> paramMap) Adds the argument map toparamMap.removeParam(String key) Removes the argument key fromparamMap.Sets isForward.add parameter to show success message.
-
Constructor Details
-
ReturnUrlBean
public ReturnUrlBean(@RequireNonnull SplibGeneralController<?> controller, @RequireNonnull SplibUtil util) Constructs a new instance with controller, util.Since
isNormalEnd == falseis used only from ExceptionHandler normally implemented not by app-developers,isNormalEndis set totrueby default.- Parameters:
controller- controllerutil- util
-
ReturnUrlBean
public ReturnUrlBean(@RequireNonnull SplibGeneralController<?> controller, @RequireNonnull SplibUtil util, boolean isNormalEnd) Constructs a new instance with controller, util, isNormalEnd.- Parameters:
controller- controllerutil- utilisNormalEnd- when it'struethe default subFunction and page on normal end set in the controller is used.
-
ReturnUrlBean
public ReturnUrlBean(@RequireNonnull SplibGeneralController<?> controller, @RequireNonnull SplibUtil util, @RequireNonnull String page) Constructs a new instance with controller, util, page.Since
isNormalEnd == falseis used only from ExceptionHandler normally implemented not by app-developers,isNormalEndis set totrueby default.- Parameters:
controller- controllerutil- utilpage- page
-
ReturnUrlBean
public ReturnUrlBean(@RequireNonnull SplibGeneralController<?> controller, @RequireNonnull SplibUtil util, boolean isNormalEnd, @RequireNonnull String page) Constructs a new instance with controller, util, page.- Parameters:
controller- controllerutil- utilisNormalEnd- when it'struethe default subFunction on normal end set in the controller is used.page- page
-
ReturnUrlBean
public ReturnUrlBean(@RequireNonnull SplibGeneralController<?> controller, @RequireNonnull SplibUtil util, @RequireNonnull String subFunction, @RequireNonnull String page) Constructs a new instance with controller, util, subFunction, page.- Parameters:
controller- controllerutil- utilsubFunction- subFunctionpage- page
-
ReturnUrlBean
Constructs a new instance with explicit path.- Parameters:
path- path
-
-
Method Details
-
getUrl
-
isForward
public boolean isForward() -
setProtocolForward
-
putParam
Adds the argument parameter toparamMap.- Parameters:
key- keyvalue- value- Returns:
- ReturnUrlBean (for method chain)
-
putParam
Adds the argument parameter toparamMap.- Parameters:
key- keyvalues- values- Returns:
- ReturnUrlBean (for method chain)
-
putParamMap
Adds the argument map toparamMap.This is used when you want to put
request.parameterMap()to the paramMap.- Parameters:
paramMap- paramMap- Returns:
- ReturnUrlBean (for method chain)
-
removeParam
Removes the argument key fromparamMap.- Parameters:
key- key- Returns:
- ReturnUrlBean (for method chain)
-
showSuccessMessage
add parameter to show success message.- Returns:
- ReturnUrlBean (for method chain)
-