Class UndertowCdiEmbeddedServer
java.lang.Object
dev.resteasy.embedded.server.UndertowCdiEmbeddedServer
- All Implemented Interfaces:
EmbeddedServer
An
EmbeddedServer that uses Undertow and enables CDI support.- Since:
- 6.1
- Author:
- James R. Perkins
-
Constructor Summary
ConstructorsConstructorDescriptionUndertowCdiEmbeddedServer(jakarta.ws.rs.SeBootstrap.Configuration configuration) Creates a new embedded server with an optional configuration. -
Method Summary
-
Constructor Details
-
UndertowCdiEmbeddedServer
public UndertowCdiEmbeddedServer() -
UndertowCdiEmbeddedServer
public UndertowCdiEmbeddedServer(jakarta.ws.rs.SeBootstrap.Configuration configuration) Creates a new embedded server with an optional configuration.The configuration is used to create a unique name for the Weld CDI container. If the configuration is not
null, the name is derived fromSeBootstrap.Configuration.host()andSeBootstrap.Configuration.port(). Otherwise, a unique counter-based name is generated.- Parameters:
configuration- the configuration used to derive the container name, may benull- Since:
- 6.2.17
-
-
Method Details
-
start
public void start(jakarta.ws.rs.SeBootstrap.Configuration configuration) Description copied from interface:EmbeddedServerStarts the server synchronously.- Specified by:
startin interfaceEmbeddedServer- Parameters:
configuration- the configuration used to configure the server
-
stop
public void stop()Description copied from interface:EmbeddedServerStops the server.- Specified by:
stopin interfaceEmbeddedServer
-
getDeployment
Description copied from interface:EmbeddedServerReturns the deployment being used for the server.- Specified by:
getDeploymentin interfaceEmbeddedServer- Returns:
- the deployment
-