Interface EmbeddedServer

All Known Subinterfaces:
EmbeddedJaxrsServer<T>
All Known Implementing Classes:
CdiNettyJaxrsServer, NettyJaxrsServer, ReactorNettyJaxrsServer, UndertowCdiEmbeddedServer, UndertowJaxrsServer, VertxJaxrsServer

public interface EmbeddedServer
An embedded server for serving Jakarta REST endpoints.

Implementations are discovered via ServiceLoader. Implementations should provide at least one of the following constructors:

  • A constructor accepting SeBootstrap.Configuration, allows access to configuration during initialization
  • A no-argument constructor

When both constructors are available, the Configuration constructor will be used, with the configuration passed to EmbeddedServers.findServer(Configuration).

Since:
6.1
Author:
James R. Perkins
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the deployment being used for the server.
    void
    start(jakarta.ws.rs.SeBootstrap.Configuration configuration)
    Starts the server synchronously.
    void
    Stops the server.
  • Method Details

    • start

      void start(jakarta.ws.rs.SeBootstrap.Configuration configuration)
      Starts the server synchronously.
      Parameters:
      configuration - the configuration used to configure the server
    • stop

      void stop()
      Stops the server.
    • getDeployment

      ResteasyDeployment getDeployment()
      Returns the deployment being used for the server.
      Returns:
      the deployment