protected boolean executeHandlerIfFound(MappingPathResource pathResource, ActionFoundPathHandler handler, String actionName, String paramPath) throws Exception { final boolean emptyParam = paramPath == null || paramPath.isEmpty(); final ActionExecute execByParam = !emptyParam ? findExecuteConfig(actionName, paramPath).orElse(null) : null; if (emptyParam || execByParam != null) { // certainly hit final String requestPath = pathResource.getRequestPath(); // no mapping, plain path here (for e.g. redirect) return handler.handleActionPath(requestPath, actionName, paramPath, execByParam); } return false; }
protected boolean executeHandlerIfFound(MappingPathResource pathResource, ActionFoundPathHandler handler, String actionName, String paramPath) throws Exception { final boolean emptyParam = paramPath == null || paramPath.isEmpty(); final ActionExecute execByParam = !emptyParam ? findExecuteConfig(actionName, paramPath).orElse(null) : null; if (emptyParam || execByParam != null) { // certainly hit final String requestPath = pathResource.getRequestPath(); // no mapping, plain path here (for e.g. redirect) return handler.handleActionPath(requestPath, actionName, paramPath, execByParam); } return false; }