@RequestMapping type-level param constraints taken into account consistently

This commit is contained in:
Juergen Hoeller
2009-02-15 21:31:20 +00:00
parent a25e24f37e
commit 90b5c3a8dd
5 changed files with 183 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2007 the original author or authors.
* Copyright 2002-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,16 +17,16 @@
package org.springframework.web.portlet.bind;
/**
* PortletRequestBindingException subclass that indicates a missing parameter.
* {@link PortletRequestBindingException} subclass that indicates a missing parameter.
*
* @author Juergen Hoeller
* @since 2.0.2
*/
public class MissingPortletRequestParameterException extends PortletRequestBindingException {
private String parameterName;
private final String parameterName;
private String parameterType;
private final String parameterType;
/**
@@ -49,14 +49,14 @@ public class MissingPortletRequestParameterException extends PortletRequestBindi
/**
* Return the name of the offending parameter.
*/
public String getParameterName() {
public final String getParameterName() {
return this.parameterName;
}
/**
* Return the expected type of the offending parameter.
*/
public String getParameterType() {
public final String getParameterType() {
return this.parameterType;
}