Package org.wiremock.url
Interface ServersideAbsoluteUrl
- All Superinterfaces:
AbsoluteUri,AbsoluteUrl,Normalisable<AbsoluteUri>,org.wiremock.stringparser.ParsedString,Uri,Url,UrlWithAuthority
- All Known Implementing Classes:
BaseUrlValue
Represents an Absolute URL (a URL without an
Fragment) as defined in RFC 3986 Section 4.3. The
name ServersideAbsoluteUrl is used in preference to AbsoluteUrl because AbsoluteUrl is more familiarly used by developers to mean a URL that is not relative, rather
than in the RFC 3986 sense of a complete URL without a fragment.
An ServersideAbsoluteUrl is a URL with no fragment, suitable for making requests for a
representation over the network.
Implementations must be immutable and thread-safe.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.wiremock.url.AbsoluteUrl
AbsoluteUrl.Builder, AbsoluteUrl.Transformer -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable FragmentDeprecated.This always returns null so you have no reason to ever call itdefault ServersideAbsoluteUrlDeprecated.Returns a normalised form of this absolute URL.static ServersideAbsoluteUrlParses a string into an absolute URL.Methods inherited from interface org.wiremock.url.AbsoluteUri
getScheme, isAbsolute, isNormalForm, resolve, resolveMethods inherited from interface org.wiremock.url.AbsoluteUrl
getAuthority, getHost, getOrigin, getSchemeRelativeUrl, isAbsoluteUrl, isOpaqueUri, isRelative, resolve, resolve, resolve, thaw, toBaseUrl, transformMethods inherited from interface org.wiremock.stringparser.ParsedString
toStringMethods inherited from interface org.wiremock.url.Uri
getPath, getPort, getQuery, getQueryOrEmpty, getResolvedPort, getUserInfo, toJavaUriMethods inherited from interface org.wiremock.url.Url
getPathAndQuery
-
Method Details
-
getFragment
Deprecated.This always returns null so you have no reason to ever call itImplementations must ALWAYS return null- Specified by:
getFragmentin interfaceUri- Returns:
- null
-
normalise
ServersideAbsoluteUrl normalise()Returns a normalised form of this absolute URL.- Specified by:
normalisein interfaceAbsoluteUri- Specified by:
normalisein interfaceAbsoluteUrl- Specified by:
normalisein interfaceNormalisable<AbsoluteUri>- Returns:
- a normalised absolute URL
-
getServersideAbsoluteUrl
Deprecated.Returns this.- Specified by:
getServersideAbsoluteUrlin interfaceAbsoluteUrl- Returns:
- this
-
parse
Parses a string into an absolute URL.- Parameters:
absoluteUrl- the string to parse- Returns:
- the parsed absolute URL
- Throws:
IllegalServersideAbsoluteUrl- if the string is not a valid absolute URL
-