public TCDOPSettingsController( @NotNull final SBuildServer server, @NotNull final PluginDescriptor pluginDescriptor, @NotNull final WebControllerManager manager) { super(server); this.server = server; this.pluginDescriptor = pluginDescriptor; this.manager = manager; myHtmlPath = pluginDescriptor.getPluginResourcesPath(HTML_PAGE_NAME); myJspPath = pluginDescriptor.getPluginResourcesPath(JSP_PAGE_NAME); myStylesPath = pluginDescriptor.getPluginResourcesPath(STYLESHEET_NAME); manager.registerController(myHtmlPath, this); }
@Nullable @Override protected ModelAndView doHandle( @NotNull HttpServletRequest request, @NotNull HttpServletResponse response) throws Exception { Map<String, Object> params = new HashMap<>(); return new ModelAndView(pluginDescriptor.getPluginResourcesPath("vncPage.jsp"), params); }
public ProfileController( @NotNull final SBuildServer server, @NotNull final PluginDescriptor pluginDescriptor, @NotNull final WebControllerManager manager) { super(server); myResourcePath = pluginDescriptor.getPluginResourcesPath(); myHtmlPath = pluginDescriptor.getPluginResourcesPath("azure-settings.html"); myJspPath = pluginDescriptor.getPluginResourcesPath("azure-settings.jsp"); myManager = new DefaultDeferredManager(); myHandlers.add(new VmSizesHandler()); myHandlers.add(new ServicesHandler()); myHandlers.add(new ImagesHandler()); myHandlers.add(new NetworksHandler()); manager.registerController(myHtmlPath, this); }
public SlackNotificationAjaxEditPageController( SBuildServer server, WebControllerManager webManager, ProjectSettingsManager settings, SlackNotificationProjectSettings whSettings, SlackNotificationPayloadManager manager, PluginDescriptor pluginDescriptor, SlackNotificationMainSettings mainSettings) { super(server); myWebManager = webManager; myServer = server; mySettings = settings; myPluginPath = pluginDescriptor.getPluginResourcesPath(); myManager = manager; myMainSettings = mainSettings; }
@Nullable public String getEditSettingsUrl() { return myDescriptor.getPluginResourcesPath("gerrit/gerritSettings.jsp"); }