in aws-codedeploy-server/src/main/java/jetbrains/buildServer/runner/codedeploy/CodeDeployRunType.java [45:60]
private static String registerController(@NotNull final PluginDescriptor descriptor,
@NotNull WebControllerManager controllerManager,
@NotNull final String jspPath,
@NotNull String htmlPath) {
final String resolvedHtmlPath = descriptor.getPluginResourcesPath(htmlPath);
controllerManager.registerController(resolvedHtmlPath, new BaseController() {
@NotNull
@Override
protected ModelAndView doHandle(@NotNull HttpServletRequest request, @NotNull HttpServletResponse response) throws Exception {
final ModelAndView mv = new ModelAndView(descriptor.getPluginResourcesPath(jspPath));
mv.getModel().put(DEPLOYMENT_SCENARIOS, STEP_LABELS);
return mv;
}
});
return resolvedHtmlPath;
}