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
-
PutResult
-
-
Method Details
-
preconditionFailed
public boolean preconditionFailed()Whether the precondition was refused rather than the write performed.- Returns:
- true on a 412
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
status
-
etag
-
location
-