Enum SwordErrorType

java.lang.Object
java.lang.Enum<SwordErrorType>
eu.dnetlib.app.directindex.errors.SwordErrorType
All Implemented Interfaces:
Serializable, Comparable<SwordErrorType>, java.lang.constant.Constable

public enum SwordErrorType extends Enum<SwordErrorType>
  • Enum Constant Details

    • AuthenticationFailed

      public static final SwordErrorType AuthenticationFailed
    • AuthenticationRequired

      public static final SwordErrorType AuthenticationRequired
    • BadRequest

      public static final SwordErrorType BadRequest
    • ByReferenceFileSizeExceeded

      public static final SwordErrorType ByReferenceFileSizeExceeded
    • ByReferenceNotAllowed

      public static final SwordErrorType ByReferenceNotAllowed
    • ContentMalformed

      public static final SwordErrorType ContentMalformed
    • ContentTypeNotAcceptable

      public static final SwordErrorType ContentTypeNotAcceptable
    • DigestMismatch

      public static final SwordErrorType DigestMismatch
    • ETagNotMatched

      public static final SwordErrorType ETagNotMatched
    • ETagRequired

      public static final SwordErrorType ETagRequired
    • Forbidden

      public static final SwordErrorType Forbidden
    • FormatHeaderMismatch

      public static final SwordErrorType FormatHeaderMismatch
    • InvalidSegmentSize

      public static final SwordErrorType InvalidSegmentSize
    • MaxAssembledSizeExceeded

      public static final SwordErrorType MaxAssembledSizeExceeded
    • MaxUploadSizeExceeded

      public static final SwordErrorType MaxUploadSizeExceeded
    • MetadataFormatNotAcceptable

      public static final SwordErrorType MetadataFormatNotAcceptable
    • MethodNotAllowed

      public static final SwordErrorType MethodNotAllowed
    • OnBehalfOfNotAllowed

      public static final SwordErrorType OnBehalfOfNotAllowed
    • PackagingFormatNotAcceptable

      public static final SwordErrorType PackagingFormatNotAcceptable
    • SegmentedUploadTimedOut

      public static final SwordErrorType SegmentedUploadTimedOut
    • SegmentLimitExceeded

      public static final SwordErrorType SegmentLimitExceeded
    • UnexpectedSegment

      public static final SwordErrorType UnexpectedSegment
    • NotFound

      public static final SwordErrorType NotFound
  • Method Details

    • values

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

      public static SwordErrorType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getHttpCode

      public int getHttpCode()
    • getMessage

      public String getMessage()