@Deprecated public class CommandMapArgumentResolver extends Object implements org.springframework.web.bind.support.WebArgumentResolver
Controller에서 화면(JSP) 입력값을 받기 위해서 일반적으로 Command(Form Class) 객체를 사용하지만, Map 객체를 사용하는걸 선호할 수 있다. Sping MVC는 Controller의 argument를 분석하여 argument값을 customizing 할 수 있는 WebArgumentResolver라는 interface를 제공한다. CommandMapArgumentResolver는 WebArgumentResolver의 구현 클래스이다. CommandMapArgumentResolver는 Controller 메소드의 argument중에 commandMap이라는 Map 객체가 있다면 HTTP request 객체에 있는 파라미터이름과 값을 commandMap에 담는다.
<< 개정이력(Modification Information) >> 수정일 수정자 수정내용 ------- -------- --------------------------- 2009.05.30 함철 최초 생성 2014.04.23 이영지 deprecated
| Constructor and Description |
|---|
CommandMapArgumentResolver()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
resolveArgument(org.springframework.core.MethodParameter methodParameter,
org.springframework.web.context.request.NativeWebRequest webRequest)
Deprecated.
Controller의 메소드 argument에 commandMap이라는 Map 객체가 있다면
HTTP request 객체에 있는 파라미터이름과 값을 commandMap에 담아 returng한다.
|
public Object resolveArgument(org.springframework.core.MethodParameter methodParameter, org.springframework.web.context.request.NativeWebRequest webRequest) throws Exception
resolveArgument in interface org.springframework.web.bind.support.WebArgumentResolvermethodParameter - - 메소드 파라미터의 타입,인덱스등의 정보webRequest - - web request 객체UNRESOLVED.ExceptionCopyright © 2015. All rights reserved.