Skip to content

Commit 205b7ec

Browse files
committed
FEAT - Add public getUndertow method to UndertowWebServer
- getUndertow() to UndertowWebServer will be null until the server has been started. Issue #3016 would enable getUndertow() to behave in a similar way to getTomcat() on TomcatWebServer. #39839 Signed-off-by: Jakob Wanger <[email protected]>
1 parent 1a907bf commit 205b7ec

File tree

1 file changed

+8
-0
lines changed
  • spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow

1 file changed

+8
-0
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/UndertowWebServer.java

+8
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,14 @@ public int getPort() {
298298
return ports.get(0).getNumber();
299299
}
300300

301+
/**
302+
* @return undertow. Note, the return value will be null until the server has been
303+
* started.
304+
*/
305+
public Undertow getUndertow() {
306+
return this.undertow;
307+
}
308+
301309
@Override
302310
public void shutDownGracefully(GracefulShutdownCallback callback) {
303311
if (this.gracefulShutdown == null) {

0 commit comments

Comments
 (0)