Class TransporterUtils
java.lang.Object
org.eclipse.aether.util.connector.transport.TransporterUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisSameAuthority(URI origin, URI target) Checks whether two URIs have the same authority (user, host and port).static booleanisSameOrigin(URI origin, URI target) Checks whether two URIs have the same origin (scheme, host and effective port).
-
Method Details
-
isSameOrigin
Checks whether two URIs have the same origin (scheme, host and effective port).- Parameters:
origin- the repository origintarget- the URI to compare with the origin- Returns:
truewhen both URIs have the same origin- Since:
- 2.0.25
-
isSameAuthority
Checks whether two URIs have the same authority (user, host and port).- Parameters:
origin- the URI to comparetarget- the URI to compare with the origin- Returns:
truewhen both URIs have the same authority- Since:
- 2.0.25
-