Clarify that registration bean URL patterns use Servlet spec format

Closes gh-13080
pull/12071/merge
Andy Wilkinson 7 years ago
parent d2cef484cb
commit c8b3cea200

@ -1,5 +1,5 @@
/*
* Copyright 2012-2016 the original author or authors.
* Copyright 2012-2018 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.
@ -157,8 +157,8 @@ abstract class AbstractFilterRegistrationBean extends RegistrationBean {
}
/**
* Return a mutable collection of URL patterns that the filter will be registered
* against.
* Return a mutable collection of URL patterns, as defined in the Servlet
* specification, that the filter will be registered against.
* @return the URL patterns
*/
public Collection<String> getUrlPatterns() {
@ -166,7 +166,8 @@ abstract class AbstractFilterRegistrationBean extends RegistrationBean {
}
/**
* Add URL patterns that the filter will be registered against.
* Add URL patterns, as defined in the Servlet specification, that the filter will be
* registered against.
* @param urlPatterns the URL patterns
*/
public void addUrlPatterns(String... urlPatterns) {

@ -1,5 +1,5 @@
/*
* Copyright 2012-2016 the original author or authors.
* Copyright 2012-2018 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.
@ -128,7 +128,8 @@ public class ServletRegistrationBean extends RegistrationBean {
}
/**
* Return a mutable collection of the URL mappings for the servlet.
* Return a mutable collection of the URL mappings, as defined in the Servlet
* specification, for the servlet.
* @return the urlMappings
*/
public Collection<String> getUrlMappings() {
@ -136,7 +137,7 @@ public class ServletRegistrationBean extends RegistrationBean {
}
/**
* Add URL mappings for the servlet.
* Add URL mappings, as defined in the Servlet specification, for the servlet.
* @param urlMappings the mappings to add
* @see #setUrlMappings(Collection)
*/

Loading…
Cancel
Save