You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProxyConnectorConfiguration.java 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. package org.apache.archiva.configuration;
  2. /*
  3. * Licensed to the Apache Software Foundation (ASF) under one
  4. * or more contributor license agreements. See the NOTICE file
  5. * distributed with this work for additional information
  6. * regarding copyright ownership. The ASF licenses this file
  7. * to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance
  9. * with the License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing,
  14. * software distributed under the License is distributed on an
  15. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. * KIND, either express or implied. See the License for the
  17. * specific language governing permissions and limitations
  18. * under the License.
  19. */
  20. /**
  21. * Class ProxyConnectorConfiguration.
  22. *
  23. * @version $Revision$ $Date$
  24. */
  25. @SuppressWarnings( "all" )
  26. public class ProxyConnectorConfiguration
  27. extends AbstractRepositoryConnectorConfiguration
  28. implements java.io.Serializable
  29. {
  30. //--------------------------/
  31. //- Class/Member Variables -/
  32. //--------------------------/
  33. /**
  34. *
  35. * The order of the proxy connectors. (0 means no
  36. * order specified)
  37. * .
  38. */
  39. private int order = 0;
  40. //-----------/
  41. //- Methods -/
  42. //-----------/
  43. /**
  44. * Get the order of the proxy connectors. (0 means no order
  45. * specified).
  46. *
  47. * @return int
  48. */
  49. public int getOrder()
  50. {
  51. return this.order;
  52. } //-- int getOrder()
  53. /**
  54. * Set the order of the proxy connectors. (0 means no order
  55. * specified).
  56. *
  57. * @param order
  58. */
  59. public void setOrder( int order )
  60. {
  61. this.order = order;
  62. } //-- void setOrder( int )
  63. /**
  64. * The order id for UNORDERED
  65. */
  66. public static final int UNORDERED = 0;
  67. /**
  68. * The policy key {@link #getPolicies()} for error handling.
  69. * See {@link org.apache.archiva.policies.DownloadErrorPolicy}
  70. * for details on potential values to this policy key.
  71. */
  72. public static final String POLICY_PROPAGATE_ERRORS = "propagate-errors";
  73. /**
  74. * The policy key {@link #getPolicies()} for error handling when an artifact is present.
  75. * See {@link org.apache.archiva.policies.DownloadErrorPolicy}
  76. * for details on potential values to this policy key.
  77. */
  78. public static final String POLICY_PROPAGATE_ERRORS_ON_UPDATE = "propagate-errors-on-update";
  79. /**
  80. * The policy key {@link #getPolicies()} for snapshot handling.
  81. * See {@link org.apache.archiva.policies.SnapshotsPolicy}
  82. * for details on potential values to this policy key.
  83. */
  84. public static final String POLICY_SNAPSHOTS = "snapshots";
  85. /**
  86. * The policy key {@link #getPolicies()} for releases handling.
  87. * See {@link org.apache.archiva.policies.ReleasesPolicy}
  88. * for details on potential values to this policy key.
  89. */
  90. public static final String POLICY_RELEASES = "releases";
  91. /**
  92. * The policy key {@link #getPolicies()} for checksum handling.
  93. * See {@link org.apache.archiva.policies.ChecksumPolicy}
  94. * for details on potential values to this policy key.
  95. */
  96. public static final String POLICY_CHECKSUM = "checksum";
  97. /**
  98. * The policy key {@link #getPolicies()} for cache-failures handling.
  99. * See {@link org.apache.archiva.policies.CachedFailuresPolicy}
  100. * for details on potential values to this policy key.
  101. */
  102. public static final String POLICY_CACHE_FAILURES = "cache-failures";
  103. }