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