Package com.intuit.karate.core
Class MockServer.Builder
java.lang.Object
com.intuit.karate.core.MockServer.Builder
- Enclosing class:
MockServer
Deprecated, for removal: This API element is subject to removal in a future version.
V1 compatibility Builder for MockServer.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Usearg(Map.of(key, value))instead.Deprecated, for removal: This API element is subject to removal in a future version.build()Deprecated, for removal: This API element is subject to removal in a future version.Usestart()instead.Deprecated, for removal: This API element is subject to removal in a future version.UsecertPath(String)instead.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.featureString(String featureContent) Deprecated, for removal: This API element is subject to removal in a future version.http(int port) Deprecated, for removal: This API element is subject to removal in a future version.Useport(port)instead.https(int port) Deprecated, for removal: This API element is subject to removal in a future version.Usessl(true).port(port)instead.Deprecated, for removal: This API element is subject to removal in a future version.UsekeyPath(String)instead.Deprecated, for removal: This API element is subject to removal in a future version.pathPrefix(String prefix) Deprecated, for removal: This API element is subject to removal in a future version.port(int port) Deprecated, for removal: This API element is subject to removal in a future version.ssl(boolean ssl) Deprecated, for removal: This API element is subject to removal in a future version.start()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Get the underlying v2 Builder for gradual migration.watch(boolean watch) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
feature
Deprecated, for removal: This API element is subject to removal in a future version.Add a feature file by path. -
featureString
@Deprecated(since="2.0", forRemoval=true) public MockServer.Builder featureString(String featureContent) Deprecated, for removal: This API element is subject to removal in a future version.Add a feature from inline string content. -
port
Deprecated, for removal: This API element is subject to removal in a future version.Set the port to listen on. 0 = dynamic port. -
arg
Deprecated, for removal: This API element is subject to removal in a future version.Set initial arguments (variables) for the mock using a map. -
arg
Deprecated, for removal: This API element is subject to removal in a future version.Usearg(Map.of(key, value))instead.Set a single argument (variable) for the mock.V1 had this single key-value variant; v2 only has Map variant.
-
pathPrefix
Deprecated, for removal: This API element is subject to removal in a future version.Set a path prefix to strip from incoming requests. -
ssl
Deprecated, for removal: This API element is subject to removal in a future version.Enable SSL/TLS. -
certPath
Deprecated, for removal: This API element is subject to removal in a future version.Set the SSL certificate file path (PEM format). -
keyPath
Deprecated, for removal: This API element is subject to removal in a future version.Set the SSL private key file path (PEM format). -
certFile
Deprecated, for removal: This API element is subject to removal in a future version.UsecertPath(String)instead.Set the SSL certificate file.V1 used File objects; v2 uses String paths.
-
keyFile
Deprecated, for removal: This API element is subject to removal in a future version.UsekeyPath(String)instead.Set the SSL private key file.V1 used File objects; v2 uses String paths.
-
http
Deprecated, for removal: This API element is subject to removal in a future version.Useport(port)instead. SSL is disabled by default.Configure HTTP server on the specified port.V1 combined port setting with ssl=false; v2 separates these.
-
https
Deprecated, for removal: This API element is subject to removal in a future version.Usessl(true).port(port)instead.Configure HTTPS server on the specified port.V1 combined port setting with ssl=true; v2 separates these.
-
watch
Deprecated, for removal: This API element is subject to removal in a future version.Enable watch mode for hot-reloading feature files. -
start
Deprecated, for removal: This API element is subject to removal in a future version.Start the mock server. -
build
Deprecated, for removal: This API element is subject to removal in a future version.Usestart()instead.Build and start the mock server.V1 name was build(); v2 uses start().
-
toV2Builder
Deprecated, for removal: This API element is subject to removal in a future version.Get the underlying v2 Builder for gradual migration.
-
MockServer.Builderinstead.