Java Code Examples for org.springframework.web.servlet.support.RequestDataValueProcessor#processAction()

The following examples show how to use org.springframework.web.servlet.support.RequestDataValueProcessor#processAction() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FormTag.java    From spring-analysis-note with MIT License 5 votes vote down vote up
/**
 * Process the action through a {@link RequestDataValueProcessor} instance
 * if one is configured or otherwise returns the action unmodified.
 */
private String processAction(String action) {
	RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor();
	ServletRequest request = this.pageContext.getRequest();
	if (processor != null && request instanceof HttpServletRequest) {
		action = processor.processAction((HttpServletRequest) request, action, getHttpMethod());
	}
	return action;
}
 
Example 2
Source File: FormTag.java    From java-technology-stack with MIT License 5 votes vote down vote up
/**
 * Process the action through a {@link RequestDataValueProcessor} instance
 * if one is configured or otherwise returns the action unmodified.
 */
private String processAction(String action) {
	RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor();
	ServletRequest request = this.pageContext.getRequest();
	if (processor != null && request instanceof HttpServletRequest) {
		action = processor.processAction((HttpServletRequest) request, action, getHttpMethod());
	}
	return action;
}
 
Example 3
Source File: FormTag.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Process the action through a {@link RequestDataValueProcessor} instance
 * if one is configured or otherwise returns the action unmodified.
 */
private String processAction(String action) {
	RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor();
	ServletRequest request = this.pageContext.getRequest();
	if (processor != null && request instanceof HttpServletRequest) {
		action = processor.processAction((HttpServletRequest) request, action, getHttpMethod());
	}
	return action;
}
 
Example 4
Source File: FormTag.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
/**
 * Process the action through a {@link RequestDataValueProcessor} instance
 * if one is configured or otherwise returns the action unmodified.
 */
private String processAction(String action) {
	RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor();
	ServletRequest request = this.pageContext.getRequest();
	if (processor != null && request instanceof HttpServletRequest) {
		action = processor.processAction((HttpServletRequest) request, action, getHttpMethod());
	}
	return action;
}
 
Example 5
Source File: TagUtils.java    From sinavi-jfw with Apache License 2.0 5 votes vote down vote up
/**
     * <p>
     * {@code Spring MVC} のパス修飾機構によって指定されたURLパスを修飾します。<br/>
     * </p>
     * @param action パス
     * @param requestContext {@link RequestContext} インスタンス
     * @param pageContext {@link PageContext} インスタンス
     * @return 修飾されたパス
     */
    public static String processAction(String action, RequestContext requestContext, PageContext pageContext) {
        RequestDataValueProcessor processor = requestContext.getRequestDataValueProcessor();
        ServletRequest request = pageContext.getRequest();
        if ((processor != null) && (request instanceof HttpServletRequest)) {
//            return processor.processAction((HttpServletRequest) request, action);
            return processor.processAction((HttpServletRequest) request, action, ((HttpServletRequest) request).getMethod());
        }
        return action;
    }