Class HttpChecksumProperty

    • Method Detail

      • fromNode

        public static HttpChecksumProperty fromNode​(Node node)
        Create a HttpChecksumProperty from Node.
        Parameters:
        node - Node to create the HttpChecksumProperty
        Returns:
        Returns the created HttpChecksumProperty.
        Throws:
        ExpectationNotMetException - if the given node is invalid.
      • getAlgorithm

        public java.lang.String getAlgorithm()
        Returns:
        Returns the supported checksum algorithm.
      • getName

        public java.lang.String getName()
        Returns:
        Returns header or trailer name to be used with checksum algorithm.
      • toNode

        public Node toNode()
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • conflictsWith

        public boolean conflictsWith​(HttpChecksumProperty otherProperty)
        Determines if the HttpChecksumProperty conflicts with another HttpChecksumProperty.
        Parameters:
        otherProperty - HttpChecksumProperty to check against.
        Returns:
        Returns true if there is a conflict.