Class ServerConfiguration
java.lang.Object
org.wildfly.testing.junit.extension.api.ServerConfiguration
The configuration settings for the server.
- Author:
- James R. Perkins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringresolveBaseUri(ExtensionContext context) Resolves the base URI from the configuration parameterswildfly.http.protocol,wildfly.http.host, andwildfly.http.port.static longtimeout(ExtensionContext context) Resolves the timeout, in seconds, from the configuration parameterwildfly.timeout.
-
Constructor Details
-
ServerConfiguration
public ServerConfiguration()
-
-
Method Details
-
timeout
Resolves the timeout, in seconds, from the configuration parameterwildfly.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
Resolves the base URI from the configuration parameterswildfly.http.protocol,wildfly.http.host, andwildfly.http.port.The port defaults to
8080for HTTP or8443for HTTPS if not explicitly set.Property Default wildfly.http.protocolhttp wildfly.http.hostlocalhost wildfly.http.port8080 (HTTP) or 8443 (HTTPS) - Parameters:
context- the context to resolve the values from- Returns:
- the base URI
-