| Package | Description |
|---|---|
| dev.codesoapbox.dummy4j.dummies.internet |
| Modifier and Type | Method and Description |
|---|---|
UrlBuilder |
UrlBuilder.minLength(int minLength)
The generated url will be expanded with random characters until it is
minLength characters long. |
UrlBuilder |
InternetDummy.urlBuilder()
Provides a builder for random urls generated according to customisable parameters
|
UrlBuilder |
UrlBuilder.withCountryTopLevelDomain()
Chooses a top level domain at random from a list of country domains.
|
UrlBuilder |
UrlBuilder.withFilePath()
Adds a file name constructed from 10 random characters with the
.html extension |
UrlBuilder |
UrlBuilder.withGenericTopLevelDomain()
Chooses a top level domain at random from a list of generic domains.
|
UrlBuilder |
UrlBuilder.withoutWwwPrefix()
Removes the
www prefix from the generated url |
UrlBuilder |
UrlBuilder.withPopularTopLevelDomain()
Chooses a top level domain at random from a list of popular domains.
|
UrlBuilder |
UrlBuilder.withPort(int port)
Sets the port for the generated url.
|
UrlBuilder |
UrlBuilder.withProtocol(UrlProtocol protocol)
Sets the protocol for the generated url
|
UrlBuilder |
UrlBuilder.withQueryParam()
Adds one query param with a randomly generated value that will be either numeric or alphabetical
|
UrlBuilder |
UrlBuilder.withQueryParams(int howManyParams)
Adds the specified amount of query params with randomly generated values that will be either
numeric or alphabetical.
|
UrlBuilder |
UrlBuilder.withRandomPort()
Sets the port to a random 4-digit
int value |
UrlBuilder |
UrlBuilder.withRandomProtocol(UrlProtocol... protocols)
Sets the protocol for the generated url to one that is randomly chosen from provided arguments.
|
UrlBuilder |
UrlBuilder.withTopLevelDomain(String domain)
Sets the top level domain for the generated url
|
Copyright © 2021. All rights reserved.