Package org.wiremock.url
Interface OpaqueUri
- All Superinterfaces:
AbsoluteUri,Normalisable<AbsoluteUri>,org.wiremock.stringparser.ParsedString,Uri
Represents a URI as defined in RFC
3986 which does not have an
Authority, such as mailto:joan@example.com,
file:/home/joan or aws:some:identifier
Implementations must be immutable and thread-safe.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.wiremock.url.AbsoluteUri
AbsoluteUri.Builder<SELF extends AbsoluteUri.Builder<SELF>>, AbsoluteUri.Transformer<SELF extends AbsoluteUri.Transformer<SELF>> -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable AuthorityDeprecated.default @Nullable HostgetHost()Deprecated.default @Nullable PortgetPort()Deprecated.default @Nullable PortDeprecated.default @Nullable UserInfoDeprecated.default booleanReturnstrueif this is an absolute URL (has a scheme and authority).default booleanReturnstrueif this is an Opaque URI (has a scheme but no authority).static OpaqueUristatic OpaqueUristatic OpaqueUristatic OpaqueUriParses a string into a URI reference.Methods inherited from interface org.wiremock.url.AbsoluteUri
getScheme, isAbsolute, isNormalForm, isRelative, normalise, resolve, resolve, resolve, thaw, transformMethods inherited from interface org.wiremock.stringparser.ParsedString
toStringMethods inherited from interface org.wiremock.url.Uri
getFragment, getPath, getQuery, getQueryOrEmpty, toJavaUri
-
Method Details
-
isAbsoluteUrl
default boolean isAbsoluteUrl()Description copied from interface:UriReturnstrueif this is an absolute URL (has a scheme and authority).- Specified by:
isAbsoluteUrlin interfaceUri- Returns:
trueif this is an absolute URL
-
isOpaqueUri
default boolean isOpaqueUri()Description copied from interface:UriReturnstrueif this is an Opaque URI (has a scheme but no authority).- Specified by:
isOpaqueUriin interfaceUri- Returns:
trueif this is an Opaque URI
-
getAuthority
Deprecated.Description copied from interface:UriReturns the authority component of this URI reference, ornullif there is no authority.- Specified by:
getAuthorityin interfaceUri- Returns:
- the authority component, or
nullif absent
-
getUserInfo
Deprecated.Description copied from interface:UriReturns the user info component from the authority, ornullif there is no authority or no user info.- Specified by:
getUserInfoin interfaceUri- Returns:
- the user info component, or
nullif absent
-
getHost
Deprecated.Description copied from interface:UriReturns the host component from the authority, ornullif there is no authority. -
getPort
Deprecated.Description copied from interface:UriReturns the port component from the authority, ornullif there is no authority or no port. -
getResolvedPort
Deprecated.Description copied from interface:UriReturns the resolved port, which is either the explicitly defined port or the default port for the scheme.- Specified by:
getResolvedPortin interfaceUri- Returns:
- the resolved port, or
nullif no port is defined and no default exists for the scheme
-
parse
Description copied from interface:UriParses a string into a URI reference.- Parameters:
opaqueUri- the string to parse- Returns:
- the parsed URI reference
- Throws:
IllegalOpaqueUri
-
of
-
of
-
of
-