ajithme commented on a change in pull request #24088: [SPARK-27122][core] Jetty 
classes must not be return via getters in org.apache.spark.ui.WebUI
URL: https://github.com/apache/spark/pull/24088#discussion_r265820907
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/ui/WebUI.scala
 ##########
 @@ -95,6 +101,16 @@ private[spark] abstract class WebUI(
     serverInfo.foreach(_.addHandler(handler, securityManager))
   }
 
+  /** Attaches a handler to this UI. */
+  def attachNewHandler(contextPath: String,
+                       httpServlet: HttpServlet,
+                       pathSpec: String): Unit = synchronized {
+    val ctx = new ServletContextHandler()
+    ctx.setContextPath("/new-handler")
 
 Review comment:
   Done

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to