提交 57d96a84 authored 作者: Thomas Mueller's avatar Thomas Mueller

Can now start a TCP server with port 0 (automatically select a port).

上级 42102441
...@@ -500,12 +500,24 @@ public class Server implements Runnable, ShutdownHandler { ...@@ -500,12 +500,24 @@ public class Server implements Runnable, ShutdownHandler {
/** /**
* Gets the URL of this server. * Gets the URL of this server.
*
* @return the url * @return the url
*/ */
public String getURL() { public String getURL() {
return service.getURL(); return service.getURL();
} }
/**
* Gets the port this server is listening on.
*
* @return the port
*/
public int getPort() {
return service.getPort();
}
/** /**
* INTERNAL * INTERNAL
*/ */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论