Interface HttpServer


public interface HttpServer
Represent the actual runtime values of the Quarkus HTTP Server.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final io.quarkus.registry.ValueRegistry.RuntimeKey<Integer>
     
    static final io.quarkus.registry.ValueRegistry.RuntimeKey<HttpServer>
     
    static final io.quarkus.registry.ValueRegistry.RuntimeKey<Integer>
     
    static final io.quarkus.registry.ValueRegistry.RuntimeKey<Integer>
     
    static final io.quarkus.registry.ValueRegistry.RuntimeKey<Integer>
     
    static final io.quarkus.registry.ValueRegistry.RuntimeInfo<HttpServer>
    The ValueRegistry.RuntimeInfo implementation for HttpServer.
    static final io.quarkus.registry.ValueRegistry.RuntimeKey<URI>
     
    static final io.quarkus.registry.ValueRegistry.RuntimeKey<Integer>
     
    static final io.quarkus.registry.ValueRegistry.RuntimeKey<Integer>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the local base URI that Quarkus is serving on.
    int
    Return the management http port that Quarkus is listening on.
    int
    Return the http port that Quarkus is listening on.
    int
    Return the https port that Quarkus is listening on.
  • Field Details

    • HTTP_PORT

      static final io.quarkus.registry.ValueRegistry.RuntimeKey<Integer> HTTP_PORT
    • HTTP_TEST_PORT

      static final io.quarkus.registry.ValueRegistry.RuntimeKey<Integer> HTTP_TEST_PORT
    • HTTPS_PORT

      static final io.quarkus.registry.ValueRegistry.RuntimeKey<Integer> HTTPS_PORT
    • HTTPS_TEST_PORT

      static final io.quarkus.registry.ValueRegistry.RuntimeKey<Integer> HTTPS_TEST_PORT
    • MANAGEMENT_PORT

      static final io.quarkus.registry.ValueRegistry.RuntimeKey<Integer> MANAGEMENT_PORT
    • MANAGEMENT_TEST_PORT

      static final io.quarkus.registry.ValueRegistry.RuntimeKey<Integer> MANAGEMENT_TEST_PORT
    • LOCAL_BASE_URI

      static final io.quarkus.registry.ValueRegistry.RuntimeKey<URI> LOCAL_BASE_URI
    • HTTP_SERVER

      static final io.quarkus.registry.ValueRegistry.RuntimeKey<HttpServer> HTTP_SERVER
    • INFO

      static final io.quarkus.registry.ValueRegistry.RuntimeInfo<HttpServer> INFO
      The ValueRegistry.RuntimeInfo implementation for HttpServer. Construct instances of HttpServer with ValueRegistry values.
  • Method Details

    • getPort

      int getPort()
      Return the http port that Quarkus is listening on.
      Returns:
      the port or -1 if Quarkus is not set to listen to the http port.
    • getSecurePort

      int getSecurePort()
      Return the https port that Quarkus is listening on.
      Returns:
      the port or -1 if Quarkus is not set to listen to the https port.
    • getManagementPort

      int getManagementPort()
      Return the management http port that Quarkus is listening on.
      Returns:
      the port or -1 if Quarkus is not set to listen to the management http port.
    • getLocalBaseUri

      URI getLocalBaseUri()
      Return the local base URI that Quarkus is serving on.
      Returns:
      the local base URI that Quarkus is serving on.