Closes #26798

Made void registerHandler(String urlPath, Object handler) throws BeansException, IllegalStateException public and introduced a public unregisterHalder(String urlPath).

Makes possible to add and remove handlers at runtime.

Comment From: pivotal-cla

@awmeinema Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@awmeinema Thank you for signing the Contributor License Agreement!

Comment From: snicoll

@awmeinema thanks for making your first contribution to Spring Framework. I've polished things up a bit and added tests in ad0c488