Package org.wiremock.url
Interface SchemeRelativeUrl
- All Superinterfaces:
org.wiremock.stringparser.ParsedString,RelativeUrl,Uri,Url,UrlWithAuthority
Represents a path and query component combination, which is a type of relative reference.
A PathAndQuery consists of a path and an optional query, with no scheme, authority, or fragment. It is typically used to represent the part of a URL after the authority.
Implementations must be immutable and thread-safe.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.wiremock.url.RelativeUrl
RelativeUrl.Builder, RelativeUrl.TransformerNested classes/interfaces inherited from interface org.wiremock.url.Url
Url.Builder, Url.Transformer<SELF extends Url.Transformer<SELF>> -
Method Summary
Modifier and TypeMethodDescriptionReturns the authority component of this scheme relative url, which should always be present.default SchemeRelativeUrlDeprecated.static SchemeRelativeUrlParses a string into a scheme relative urlMethods inherited from interface org.wiremock.stringparser.ParsedString
toStringMethods inherited from interface org.wiremock.url.RelativeUrl
getScheme, isAbsolute, isAbsoluteUrl, isOpaqueUri, isRelative, thawMethods inherited from interface org.wiremock.url.Uri
getFragment, getHost, getPath, getPort, getQuery, getQueryOrEmpty, getResolvedPort, getUserInfo, toJavaUriMethods inherited from interface org.wiremock.url.Url
getPathAndQuery, transform
-
Method Details
-
getAuthority
Authority getAuthority()Returns the authority component of this scheme relative url, which should always be present.- Specified by:
getAuthorityin interfaceUri- Specified by:
getAuthorityin interfaceUrlWithAuthority- Returns:
- the authority component
-
getSchemeRelativeUrl
Deprecated.- Specified by:
getSchemeRelativeUrlin interfaceUrlWithAuthority
-
parse
Parses a string into a scheme relative url- Parameters:
pathAndQuery- the string to parse- Returns:
- the parsed path and query
- Throws:
IllegalPathAndQuery- if the string is not a valid path and queryIllegalSchemeRelativeUrl
-