Merge pull request #33247 from izeye

* pr/33247:
  Polish "Add missing Javadoc since in AbstractUrlHandlerMapping"
  Add missing Javadoc since in AbstractUrlHandlerMapping

Closes gh-33247
This commit is contained in:
Stéphane Nicoll 2024-07-21 09:34:06 +02:00
commit 28b044cdb4
1 changed files with 3 additions and 0 deletions

View File

@ -143,6 +143,7 @@ public abstract class AbstractUrlHandlerMapping extends AbstractHandlerMapping i
* @param beanName the name of the handler bean
* @throws BeansException if the handler couldn't be registered
* @throws IllegalStateException if there is a conflicting handler registered
* @since 6.2
*/
public void registerHandler(String[] urlPaths, String beanName) throws BeansException, IllegalStateException {
Assert.notNull(urlPaths, "URL path array must not be null");
@ -158,6 +159,7 @@ public abstract class AbstractUrlHandlerMapping extends AbstractHandlerMapping i
* (a bean name will automatically be resolved into the corresponding handler bean)
* @throws BeansException if the handler couldn't be registered
* @throws IllegalStateException if there is a conflicting handler registered
* @since 6.2
*/
public void registerHandler(String urlPath, Object handler) throws BeansException, IllegalStateException {
Assert.notNull(urlPath, "URL path must not be null");
@ -208,6 +210,7 @@ public abstract class AbstractUrlHandlerMapping extends AbstractHandlerMapping i
/**
* Remove the mapping for the handler registered for the given URL path.
* @param urlPath the mapping to remove
* @since 6.2
*/
public void unregisterHandler(String urlPath) {
Assert.notNull(urlPath, "URL path must not be null");