Package org.exoplatform.caldav.client
Record Class PutResult
java.lang.Object
java.lang.Record
org.exoplatform.caldav.client.PutResult
- Record Components:
status- the HTTP status the server answeredetag- the stored object's version when the server named one, exactly as sent; null otherwise — and a null here does NOT mean the write failed, only that confirming the stored version needs a read-backlocation- the entry's real URL when the server chose its own path (BlueMind's CardDAV twin does), resolved absolute; null otherwise
What a conditional PUT answered. A 412 is a result, not an exception: under
If-None-Match: * it means "already exists", under If-Match
it means "somebody changed it first" — facts the caller's conflict rules
consume, not faults.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe status a refused precondition answers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.etag()Returns the value of theetagrecord component.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.booleanWhether the precondition was refused rather than the write performed.intstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
PRECONDITION_FAILED
public static final int PRECONDITION_FAILEDThe status a refused precondition answers.- See Also:
-
-
Constructor Details
-
Method Details
-
preconditionFailed
public boolean preconditionFailed()Whether the precondition was refused rather than the write performed.- Returns:
- true on a 412
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
status
public int status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
etag
Returns the value of theetagrecord component.- Returns:
- the value of the
etagrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-