Class TransporterUtils
- java.lang.Object
-
- org.eclipse.aether.util.connector.transport.TransporterUtils
-
public final class TransporterUtils extends java.lang.Object
A utility class for transporters.- Since:
- 2.0.25
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisSameAuthority(java.net.URI origin, java.net.URI target)Checks whether two URIs have the same authority (user, host and port).static booleanisSameOrigin(java.net.URI origin, java.net.URI target)Checks whether two URIs have the same origin (scheme, host and effective port).
-
-
-
Method Detail
-
isSameOrigin
public static boolean isSameOrigin(java.net.URI origin, java.net.URI target)
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
public static boolean isSameAuthority(java.net.URI origin, java.net.URI target)
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
-
-