Class ServerConfiguration

java.lang.Object
org.wildfly.testing.junit.extension.api.ServerConfiguration

public class ServerConfiguration extends Object
The configuration settings for the server.
Author:
James R. Perkins
  • Constructor Details

    • ServerConfiguration

      public ServerConfiguration()
  • Method Details

    • timeout

      public static long timeout(ExtensionContext context)
      Resolves the timeout, in seconds, from the configuration parameter wildfly.timeout. The value is used for startup and shutdown timeouts. The default is 60 seconds.
      Parameters:
      context - the context to resolve the configuration from
      Returns:
      the timeout
    • resolveBaseUri

      public static String resolveBaseUri(ExtensionContext context)
      Resolves the base URI from the configuration parameters wildfly.http.protocol, wildfly.http.host, and wildfly.http.port.

      The port defaults to 8080 for HTTP or 8443 for HTTPS if not explicitly set.

      Property Default
      wildfly.http.protocol http
      wildfly.http.host localhost
      wildfly.http.port 8080 (HTTP) or 8443 (HTTPS)

      Parameters:
      context - the context to resolve the values from
      Returns:
      the base URI