Enum Class RemoteRepository.Intent

java.lang.Object
java.lang.Enum<RemoteRepository.Intent>
org.eclipse.aether.repository.RemoteRepository.Intent
All Implemented Interfaces:
Serializable, Comparable<RemoteRepository.Intent>, Constable
Enclosing class:
RemoteRepository

The intent this repository is to be used for. Newly created repositories are usually "bare", and before their actual use (caller or repository system) adapts them, equip with auth/proxy info and even mirrors, if environment is configured for them. Note: "bare" does not always mean "without authentication", as client code may create with all required properties, but RepositorySystem will process them anyway, marking their "intent".

Important consequence: the change of RemoteRepository.Intent on repository may affect the use cases when they are used as keys (they are suitable for that). To use RemoteRepository instances as key, you should use instances returned by method RemoteRepository.toBareRemoteRepository(), that returns "normalized" repository instances usable as keys. Also, in "key usage case" two instances of remote repository are considered equal if following stands: Objects.equals(r1.toBareRemoteRepository(), r2.toBareRemoteRepository()).

Since:
2.0.14
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static RemoteRepository.Intent[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RemoteRepository.Intent valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null