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 SeContainer
cdiContainer()
Get CDI container in use.String
host()
Get the host this server listens on.int
port()
Get the port this server listens on or-1
if the server is not running.int
port(String socketName)
Get the port of the named socket.Server
start()
Start this server (can only be used once).Server
stop()
Stop this server immediately (can only be used on a started server).
-
-
-
Method Detail
-
cdiContainer
public SeContainer cdiContainer()
Description copied from interface:Server
Get CDI container in use.- Specified by:
cdiContainer
in interfaceServer
- Returns:
- CDI container instance (standard edition)
-
start
public Server start()
Description copied from interface:Server
Start this server (can only be used once). This is a blocking call.
-
stop
public Server stop()
Description copied from interface:Server
Stop this server immediately (can only be used on a started server). This is a blocking call.
-
host
public String host()
Description copied from interface:Server
Get the host this server listens on.
-
port
public int port()
Description copied from interface:Server
Get the port this server listens on or-1
if the server is not running.
-
-