Class HttpUrl.Builder
java.lang.Object
com.github.mjeanroy.junit.servers.client.HttpUrl.Builder
- Enclosing class:
HttpUrl
Builder used to create
HttpUrl
instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create immutableHttpUrl
instance from current field values.Update URL Host.Update URL Path.withPort
(int port) Update URL Port.withScheme
(String scheme) Update URL Scheme.
-
Constructor Details
-
Builder
public Builder()Create builder.
-
-
Method Details
-
withScheme
Update URL Scheme.- Parameters:
scheme
- New URL Scheme.- Returns:
- The builder (for chaining).
-
withHost
Update URL Host.- Parameters:
host
- New URL Host.- Returns:
- The builder (for chaining).
-
withPort
Update URL Port.- Parameters:
port
- New URL Port.- Returns:
- The builder (for chaining).
-
withPath
Update URL Path.- Parameters:
path
- New URL Path.- Returns:
- The builder (for chaining).
-
build
Create immutableHttpUrl
instance from current field values.- Returns:
- URL.
-