Class TransporterUtils

java.lang.Object
org.eclipse.aether.util.connector.transport.TransporterUtils

public final class TransporterUtils extends Object
A utility class for transporters.
Since:
2.0.25
  • Method Details

    • isSameOrigin

      public static boolean isSameOrigin(URI origin, URI target)
      Checks whether two URIs have the same origin (scheme, host and effective port).
      Parameters:
      origin - the repository origin
      target - the URI to compare with the origin
      Returns:
      true when both URIs have the same origin
      Since:
      2.0.25
    • isSameAuthority

      public static boolean isSameAuthority(URI origin, URI target)
      Checks whether two URIs have the same authority (user, host and port).
      Parameters:
      origin - the URI to compare
      target - the URI to compare with the origin
      Returns:
      true when both URIs have the same authority
      Since:
      2.0.25