Package org.exoplatform.caldav.client
Record Class PropPatchResult
java.lang.Object
java.lang.Record
org.exoplatform.caldav.client.PropPatchResult
- Record Components:
status- the HTTP status the server answeredfailedPropstatStatuses- the statuses of the propstats that did not grant their property, in document order; empty when none failed or the body carried no readable propstat
What the server answered to a PROPPATCH — the raw status and the statuses
of every propstat that did not grant its property.
Like MkCalendarResult, this is a claim and never a fact. A server
that answers 201 to a MKCALENDAR having created nothing is as free to answer
207 with a granting propstat having changed nothing, and the one statement
a caller may trust is the property read back from the collection itself.
accepted() therefore only says the server did not decline;
whether the name is now what eXo asked for is the read-back's to say.
-
Constructor Summary
ConstructorsConstructorDescriptionPropPatchResult(int status, List<Integer> failedPropstatStatuses) Creates an instance of aPropPatchResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepted()Whether the server claims to have applied the change: a 2xx answer (207 Multi-Status or a bare 200) with no propstat reporting a failure.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailedPropstatStatusesrecord component.final inthashCode()Returns a hash code value for this object.booleanrefused()Whether the server declined to change properties on this collection at all — a method it does not offer, or a collection it will not let this account write.intstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PropPatchResult
Creates an instance of aPropPatchResultrecord class.- Parameters:
status- the value for thestatusrecord componentfailedPropstatStatuses- the value for thefailedPropstatStatusesrecord component
-
-
Method Details
-
refused
public boolean refused()Whether the server declined to change properties on this collection at all — a method it does not offer, or a collection it will not let this account write.- Returns:
- true when the verb itself was refused
-
accepted
public boolean accepted()Whether the server claims to have applied the change: a 2xx answer (207 Multi-Status or a bare 200) with no propstat reporting a failure.- Returns:
- true when nothing in the answer says no
-
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
-
failedPropstatStatuses
Returns the value of thefailedPropstatStatusesrecord component.- Returns:
- the value of the
failedPropstatStatusesrecord component
-