Class 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 boolean isSameAuthority​(java.net.URI origin, java.net.URI target)
      Checks whether two URIs have the same authority (user, host and port).
      static boolean isSameOrigin​(java.net.URI origin, java.net.URI target)
      Checks whether two URIs have the same origin (scheme, host and effective port).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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​(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 compare
        target - the URI to compare with the origin
        Returns:
        true when both URIs have the same authority
        Since:
        2.0.25