src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java

changeset 57
1262b5433644
parent 54
77e01cda5a40
child 58
8d3047f78190
equal deleted inserted replaced
56:11b1e7153496 57:1262b5433644
164 paramsInjectible &= HttpServletRequest.class.isAssignableFrom(param) 164 paramsInjectible &= HttpServletRequest.class.isAssignableFrom(param)
165 || HttpServletResponse.class.isAssignableFrom(param) 165 || HttpServletResponse.class.isAssignableFrom(param)
166 || DataAccessObjects.class.isAssignableFrom(param); 166 || DataAccessObjects.class.isAssignableFrom(param);
167 } 167 }
168 if (paramsInjectible) { 168 if (paramsInjectible) {
169 final String requestPath = "/" + mapping.get().requestPath(); 169 final String requestPath = "/" + mapping.get().requestPath()
170 + (mapping.get().menuKey().isBlank() ? "" : "/");
170 171
171 if (mappings 172 if (mappings
172 .computeIfAbsent(mapping.get().method(), k -> new HashMap<>()) 173 .computeIfAbsent(mapping.get().method(), k -> new HashMap<>())
173 .putIfAbsent(requestPath, method) != null) { 174 .putIfAbsent(requestPath, method) != null) {
174 LOG.warn("{} {} has multiple mappings", 175 LOG.warn("{} {} has multiple mappings",

mercurial