Class ArmeriaWebServer

java.lang.Object
com.linecorp.armeria.spring.web.ArmeriaWebServer
All Implemented Interfaces:
org.springframework.boot.web.server.WebServer

public final class ArmeriaWebServer
extends Object
implements org.springframework.boot.web.server.WebServer
A WebServer that can be used to control an Armeria server.
See Also:
to create a with the reactive stack
  • Constructor Details

    • ArmeriaWebServer

      public ArmeriaWebServer​(Server server, SessionProtocol protocol, @Nullable InetAddress address, int port, ConfigurableListableBeanFactory beanFactory)
      Creates a new WebServer instance with the specified Armeria Server.
      Parameters:
      server - the Armeria server
      protocol - the session protocol which is used for the primary port
      address - the primary local address that the server will be bound to
      port - the primary local port that the server will be bound to
      beanFactory - the bean factory that adding ArmeriaBeanPostProcessor to the application context.
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.springframework.boot.web.server.WebServer
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.boot.web.server.WebServer
    • getPort

      public int getPort()
      Specified by:
      getPort in interface org.springframework.boot.web.server.WebServer