Package org.apache.abdera.util
Class EntityTag
- java.lang.Object
-
- org.apache.abdera.util.EntityTag
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<EntityTag>
@Deprecated(since="2021-07-29") public class EntityTag extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable, java.lang.Comparable<EntityTag>
Deprecated.This API is deprecated as Apache Abdera is a retired project since 2017.Implements an EntityTag.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcompareTo(EntityTag o)Deprecated.booleanequals(java.lang.Object obj)Deprecated.static EntityTaggenerate(java.lang.String... material)Deprecated.Utility method for generating ETags.java.lang.StringgetTag()Deprecated.inthashCode()Deprecated.booleanisWeak()Deprecated.booleanisWild()Deprecated.static booleanmatches(java.lang.String tag1, java.lang.String tag2)Deprecated.static booleanmatches(EntityTag tag1, java.lang.String tag2)Deprecated.static booleanmatches(EntityTag etag, java.lang.String... material)Deprecated.Checks that the passed in ETag matches the ETag generated by the generate methodstatic booleanmatches(EntityTag tag1, EntityTag tag2)Deprecated.static booleanmatchesAny(java.lang.String tag1, java.lang.String tags)Deprecated.static booleanmatchesAny(java.lang.String tag1, java.lang.String tags, boolean weak)Deprecated.static booleanmatchesAny(EntityTag tag1, java.lang.String tags)Deprecated.static booleanmatchesAny(EntityTag tag1, java.lang.String tags, boolean weak)Deprecated.static booleanmatchesAny(EntityTag tag1, EntityTag[] tags)Deprecated.static booleanmatchesAny(EntityTag tag1, EntityTag[] tags, boolean weak)Deprecated.static EntityTagparse(java.lang.String entity_tag)Deprecated.static EntityTag[]parseTags(java.lang.String entity_tags)Deprecated.java.lang.StringtoString()Deprecated.static java.lang.StringtoString(java.lang.String... tags)Deprecated.static java.lang.StringtoString(EntityTag... tags)Deprecated.
-
-
-
Field Detail
-
WILD
public static final EntityTag WILD
Deprecated.
-
-
Method Detail
-
parse
public static EntityTag parse(java.lang.String entity_tag)
Deprecated.
-
parseTags
public static EntityTag[] parseTags(java.lang.String entity_tags)
Deprecated.
-
matchesAny
public static boolean matchesAny(EntityTag tag1, java.lang.String tags)
Deprecated.
-
matchesAny
public static boolean matchesAny(EntityTag tag1, java.lang.String tags, boolean weak)
Deprecated.
-
matchesAny
public static boolean matchesAny(java.lang.String tag1, java.lang.String tags)Deprecated.
-
matchesAny
public static boolean matchesAny(java.lang.String tag1, java.lang.String tags, boolean weak)Deprecated.
-
matchesAny
public static boolean matchesAny(EntityTag tag1, EntityTag[] tags, boolean weak)
Deprecated.
-
matches
public static boolean matches(java.lang.String tag1, java.lang.String tag2)Deprecated.
-
matches
public static boolean matches(EntityTag tag1, java.lang.String tag2)
Deprecated.
-
isWild
public boolean isWild()
Deprecated.
-
getTag
public java.lang.String getTag()
Deprecated.
-
isWeak
public boolean isWeak()
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
generate
public static EntityTag generate(java.lang.String... material)
Deprecated.Utility method for generating ETags. Works by concatenating the UTF-8 bytes of the provided strings then generating an MD5 hash of the result.
-
matches
public static boolean matches(EntityTag etag, java.lang.String... material)
Deprecated.Checks that the passed in ETag matches the ETag generated by the generate method
-
toString
public static java.lang.String toString(EntityTag... tags)
Deprecated.
-
toString
public static java.lang.String toString(java.lang.String... tags)
Deprecated.
-
-