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 int
compareTo(EntityTag o)
Deprecated.boolean
equals(Object obj)
Deprecated.static EntityTag
generate(String... material)
Deprecated.Utility method for generating ETags.String
getTag()
Deprecated.int
hashCode()
Deprecated.boolean
isWeak()
Deprecated.boolean
isWild()
Deprecated.static boolean
matches(String tag1, String tag2)
Deprecated.static boolean
matches(EntityTag tag1, String tag2)
Deprecated.static boolean
matches(EntityTag etag, String... material)
Deprecated.Checks that the passed in ETag matches the ETag generated by the generate methodstatic boolean
matches(EntityTag tag1, EntityTag tag2)
Deprecated.static boolean
matchesAny(String tag1, String tags)
Deprecated.static boolean
matchesAny(String tag1, String tags, boolean weak)
Deprecated.static boolean
matchesAny(EntityTag tag1, String tags)
Deprecated.static boolean
matchesAny(EntityTag tag1, String tags, boolean weak)
Deprecated.static boolean
matchesAny(EntityTag tag1, EntityTag[] tags)
Deprecated.static boolean
matchesAny(EntityTag tag1, EntityTag[] tags, boolean weak)
Deprecated.static EntityTag
parse(String entity_tag)
Deprecated.static EntityTag[]
parseTags(String entity_tags)
Deprecated.String
toString()
Deprecated.static String
toString(String... tags)
Deprecated.static String
toString(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:
compareTo
in interfaceComparable<EntityTag>
-
-