/** * Convert to URL string to move the action. <br> * e.g. ProductListAction to /product/list/ <br> * And not contain context path. * @param actionType The class type of action that it redirects to. (NotNull) * @return The URL string to move to the action. (NotNull) */ public String toActionUrl(Class<?> actionType) { assertArgumentNotNull("actionType", actionType); return toActionUrl(actionType, EMPTY_URL_CHAIN); }
/** * Convert to URL string to move the action. <br> * e.g. ProductListAction to /product/list/ <br> * And not contain context path. * @param actionType The class type of action that it redirects to. (NotNull) * @return The URL string to move to the action. (NotNull) */ public String toActionUrl(Class<?> actionType) { assertArgumentNotNull("actionType", actionType); return toActionUrl(actionType, EMPTY_URL_CHAIN); }
/** * Convert to URL string to move the action. * <pre> * <span style="color: #3F7E5E">// /product/list/</span> * String url = toActionUrl(ProductListAction.<span style="color: #70226C">class</span>); * </pre> * @param actionType The class type of action that it redirects to. (NotNull) * @return The URL string to move to the action. (NotNull) */ protected String toActionUrl(Class<?> actionType) { assertArgumentNotNull("actionType", actionType); return actionPathResolver.toActionUrl(actionType); }
protected String toActionUrl(Class<?> actionType) { // #hope get it from requestManager or response saves action type return getActionPathResolver().toActionUrl(actionType); }
/** * Convert to URL string to move the action. * <pre> * <span style="color: #3F7E5E">// /product/list/</span> * String url = toActionUrl(ProductListAction.<span style="color: #70226C">class</span>); * </pre> * @param actionType The class type of action that it redirects to. (NotNull) * @return The URL string to move to the action. (NotNull) */ protected String toActionUrl(Class<?> actionType) { assertArgumentNotNull("actionType", actionType); return actionPathResolver.toActionUrl(actionType); }
@Override public HtmlResponse redirectToLoginAction() { final Class<?> redirectLoginActionType = getRedirectLoginActionType(); final String actionUrl = actionPathResolver.toActionUrl(redirectLoginActionType); return HtmlResponse.fromRedirectPath(actionUrl); }
@Override public HtmlResponse redirectToLoginAction() { final Class<?> redirectLoginActionType = getRedirectLoginActionType(); final String actionUrl = actionPathResolver.toActionUrl(redirectLoginActionType); return HtmlResponse.fromRedirectPath(actionUrl); }
/** * Convert to URL string to move the action. * <pre> * <span style="color: #3F7E5E">// /product/list/3</span> * String url = toActionUrl(ProductListAction.<span style="color: #70226C">class</span>, moreUrl(3)); * </pre> * @param actionType The class type of action that it redirects to. (NotNull) * @param chain The chain of URL to build additional info on URL. (NotNull) * @return The URL string to move to the action. (NotNull) */ protected String toActionUrl(Class<?> actionType, UrlChain chain) { assertArgumentNotNull("actionType", actionType); assertArgumentNotNull("chain", chain); return actionPathResolver.toActionUrl(actionType, chain); }
/** * Convert to URL string to move the action. * <pre> * <span style="color: #3F7E5E">// /product/list/3</span> * String url = toActionUrl(ProductListAction.<span style="color: #70226C">class</span>, moreUrl(3)); * </pre> * @param actionType The class type of action that it redirects to. (NotNull) * @param chain The chain of URL to build additional info on URL. (NotNull) * @return The URL string to move to the action. (NotNull) */ protected String toActionUrl(Class<?> actionType, UrlChain chain) { assertArgumentNotNull("actionType", actionType); assertArgumentNotNull("chain", chain); return actionPathResolver.toActionUrl(actionType, chain); }
actionDocMeta.setUrl(getActionPathResolver().toActionUrl(actionClass, urlChain));