1 16 17 package org.springframework.web.bind; 18 19 import javax.servlet.ServletRequest ; 20 21 import org.springframework.beans.MutablePropertyValues; 22 import org.springframework.web.util.WebUtils; 23 24 39 public class ServletRequestParameterPropertyValues extends MutablePropertyValues { 40 41 42 public static final String DEFAULT_PREFIX_SEPARATOR = "_"; 43 44 45 50 public ServletRequestParameterPropertyValues(ServletRequest request) { 51 this(request, null, null); 52 } 53 54 62 public ServletRequestParameterPropertyValues(ServletRequest request, String prefix) { 63 this(request, prefix, DEFAULT_PREFIX_SEPARATOR); 64 } 65 66 75 public ServletRequestParameterPropertyValues(ServletRequest request, String prefix, String prefixSeparator) { 76 super(WebUtils.getParametersStartingWith( 77 request, (prefix != null) ? prefix + prefixSeparator : null)); 78 } 79 80 } 81 | Popular Tags |