Allow for AbstractUrlHandlerMapping to add/remove handlers at runtime #26798
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: superseded
An issue that has been superseded by another
type: enhancement
A general enhancement
The requirements is to be able to add and remove mappings for urls at runtime.
It is possible right now with the
AbstractHandlerMethodMapping
and itsregisterMapping(T mapping, Object handler, Method method)
andunregisterMapping(T mapping)
API.It would be great if
AbstractUrlHandlerMapping
would make itsprotected void registerHandler(String urlPath, Object handler) throws BeansException, IllegalStateException {
aspublic
and also would introduce anunregisterHalder(String urlPath)
.Related Spring Integration issue: spring-projects/spring-integration#3533.
Right I'm enforced to copy/paste a lot from Spring MVC to have a backward compatibility and implement a requested feature.
Thanks
The text was updated successfully, but these errors were encountered: