initial BindingLifecycle @MVC integration

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1659 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Keith Donald
2009-07-30 11:18:39 +00:00
parent 8b37f28f2b
commit a0e2b6b13b
15 changed files with 891 additions and 8 deletions
@@ -17,12 +17,14 @@
package org.springframework.web.portlet.context;
import java.security.Principal;
import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
import javax.portlet.PortletRequest;
import javax.portlet.PortletResponse;
import javax.portlet.PortletSession;
import org.springframework.util.CollectionUtils;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
import org.springframework.web.context.request.NativeWebRequest;
@@ -78,7 +80,6 @@ public class PortletWebRequest extends PortletRequestAttributes implements Nativ
return getRequest().getProperty(headerName);
}
@SuppressWarnings("unchecked")
public String[] getHeaderValues(String headerName) {
String[] headerValues = StringUtils.toStringArray(getRequest().getProperties(headerName));
return (!ObjectUtils.isEmpty(headerValues) ? headerValues : null);
@@ -92,7 +93,10 @@ public class PortletWebRequest extends PortletRequestAttributes implements Nativ
return getRequest().getParameterValues(paramName);
}
@SuppressWarnings("unchecked")
public Iterator<String> getParameterNames() {
return CollectionUtils.toIterator(getRequest().getParameterNames());
}
public Map<String, String[]> getParameterMap() {
return getRequest().getParameterMap();
}