Class UndertowCdiEmbeddedServer

java.lang.Object
dev.resteasy.embedded.server.UndertowCdiEmbeddedServer
All Implemented Interfaces:
EmbeddedServer

@Priority(100) public class UndertowCdiEmbeddedServer extends Object implements EmbeddedServer
An EmbeddedServer that uses Undertow and enables CDI support.
Since:
6.1
Author:
James R. Perkins
  • 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 from SeBootstrap.Configuration.host() and SeBootstrap.Configuration.port(). Otherwise, a unique counter-based name is generated.

      Parameters:
      configuration - the configuration used to derive the container name, may be null
      Since:
      7.0.3
  • Method Details

    • start

      public void start(jakarta.ws.rs.SeBootstrap.Configuration configuration)
      Description copied from interface: EmbeddedServer
      Starts the server synchronously.
      Specified by:
      start in interface EmbeddedServer
      Parameters:
      configuration - the configuration used to configure the server
    • stop

      public void stop()
      Description copied from interface: EmbeddedServer
      Stops the server.
      Specified by:
      stop in interface EmbeddedServer
    • getDeployment

      public ResteasyDeployment getDeployment()
      Description copied from interface: EmbeddedServer
      Returns the deployment being used for the server.
      Specified by:
      getDeployment in interface EmbeddedServer
      Returns:
      the deployment