Package org.apache.abdera.util
Class EntityTag
- java.lang.Object
-
- org.apache.abdera.util.EntityTag
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<EntityTag>
@Deprecated(since="2021-07-29") public class EntityTag extends Object implements Cloneable, Serializable, 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(Object obj)Deprecated.static EntityTaggenerate(String... material)Deprecated.Utility method for generating ETags.StringgetTag()Deprecated.inthashCode()Deprecated.booleanisWeak()Deprecated.booleanisWild()Deprecated.static booleanmatches(String tag1, String tag2)Deprecated.static booleanmatches(EntityTag tag1, String tag2)Deprecated.static booleanmatches(EntityTag etag, 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(String tag1, String tags)Deprecated.static booleanmatchesAny(String tag1, String tags, boolean weak)Deprecated.static booleanmatchesAny(EntityTag tag1, String tags)Deprecated.static booleanmatchesAny(EntityTag tag1, String tags, boolean weak)Deprecated.static booleanmatchesAny(EntityTag tag1, EntityTag[] tags)Deprecated.static booleanmatchesAny(EntityTag tag1, EntityTag[] tags, boolean weak)Deprecated.static EntityTagparse(String entity_tag)Deprecated.static EntityTag[]parseTags(String entity_tags)Deprecated.StringtoString()Deprecated.static StringtoString(String... tags)Deprecated.static StringtoString(EntityTag... tags)Deprecated.
-
-
-
Field Detail
-
WILD
public static final EntityTag WILD
Deprecated.
-
-
Method Detail
-
matchesAny
public static boolean matchesAny(EntityTag tag1, EntityTag[] tags, boolean weak)
Deprecated.
-
isWild
public boolean isWild()
Deprecated.
-
getTag
public String getTag()
Deprecated.
-
isWeak
public boolean isWeak()
Deprecated.
-
generate
public static EntityTag generate(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, String... material)
Deprecated.Checks that the passed in ETag matches the ETag generated by the generate method
-
compareTo
public int compareTo(EntityTag o)
Deprecated.- Specified by:
compareToin interfaceComparable<EntityTag>
-
-