Package org.wiremock.url
Interface UrlWithAuthority
- All Known Subinterfaces:
AbsoluteUrl,BaseUrl,Origin,SchemeRelativeUrl,ServersideAbsoluteUrl
- All Known Implementing Classes:
BaseUrlValue
-
Nested Class Summary
Nested 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 URL.static UrlWithAuthorityParses a string into a URL with an authority.Methods inherited from interface org.wiremock.stringparser.ParsedString
toStringMethods inherited from interface org.wiremock.url.Uri
getFragment, getHost, getPath, getPort, getQuery, getQueryOrEmpty, getResolvedPort, getScheme, getUserInfo, isAbsolute, isAbsoluteUrl, isOpaqueUri, isRelative, toJavaUriMethods inherited from interface org.wiremock.url.Url
getPathAndQuery, thaw, transform
-
Method Details
-
getAuthority
Authority getAuthority()Returns the authority component of this URL.URLs always have an authority component (unlike relative references and URNs).
- Specified by:
getAuthorityin interfaceUri- Returns:
- the authority component, never
null
-
getSchemeRelativeUrl
SchemeRelativeUrl getSchemeRelativeUrl() -
parse
Parses a string into a URL with an authority.- Parameters:
url- the string to parse- Returns:
- the parsed URI reference
- Throws:
IllegalUrl- if the string is not a valid URI reference
-