| Modifier and Type | Field and Description |
|---|---|
| private static final RuntimeDelegate. | |
| private String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the two tags are the same, false otherwise.the object to compare to. obj)Overrides java. obj to this tag to see if they are the same considering
weakness and value.
|
| public String | |
| public int | Returns: the entity tag hash code.Overrides java. |
| public boolean | Returns: true if this represents a weak tag, false otherwise.Check the strength of an |
| public String | Returns: a string version of the entity tag.Overrides java. |
| public static EntityTag |
| HEADER_DELEGATE | back to summary |
|---|---|
| private static final RuntimeDelegate. | |
| value | back to summary |
|---|---|
| private String value | |
| weak | back to summary |
|---|---|
| private boolean weak | |
| EntityTag | back to summary |
|---|---|
| public EntityTag(final String value) Creates a new instance of a strong
| |
| EntityTag | back to summary |
|---|---|
| public EntityTag(final String value, final boolean weak) Creates a new instance of an
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Compares | |
| getValue | back to summary |
|---|---|
| public String getValue() Get the value of an
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Generate hashCode based on value and weakness.
| |
| isWeak | back to summary |
|---|---|
| public boolean isWeak() Check the strength of an
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Convert the entity tag to a string suitable for use as the value of the corresponding HTTP header. | |
| valueOf | back to summary |
|---|---|
| public static EntityTag valueOf(final String value) Creates a new instance of
| |