Package io.helidon.microprofile.server
Class ServerImpl
- java.lang.Object
-
- io.helidon.microprofile.server.ServerImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.microprofile.server.Server
Server.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SeContainercdiContainer()Get CDI container in use.Stringhost()Get the host this server listens on.intport()Get the port this server listens on or-1if the server is not running.intport(String socketName)Get the port of the named socket.Serverstart()Start this server (can only be used once).Serverstop()Stop this server immediately (can only be used on a started server).
-
-
-
Method Detail
-
cdiContainer
public SeContainer cdiContainer()
Description copied from interface:ServerGet CDI container in use.- Specified by:
cdiContainerin interfaceServer- Returns:
- CDI container instance (standard edition)
-
start
public Server start()
Description copied from interface:ServerStart this server (can only be used once). This is a blocking call.
-
stop
public Server stop()
Description copied from interface:ServerStop this server immediately (can only be used on a started server). This is a blocking call.
-
host
public String host()
Description copied from interface:ServerGet the host this server listens on.
-
port
public int port()
Description copied from interface:ServerGet the port this server listens on or-1if the server is not running.
-
-