Package org.exoplatform.caldav.client
Record Class ServerCapabilities
java.lang.Object
java.lang.Record
org.exoplatform.caldav.client.ServerCapabilities
- Record Components:
syncCollection- whether the server advertises the RFC 6578 sync-collection REPORT and answered a sync token to start fromcalendarMultiget- whether the calendar-multiget REPORT is advertisedcalendarQuery- whether the calendar-query REPORT is advertisedctag- whether the collection carries a CalendarServer ctagdavHeader- the rawDAVresponse header, or null — kept for diagnostics, never parsed into decisions here
public record ServerCapabilities(boolean syncCollection, boolean calendarMultiget, boolean calendarQuery, boolean ctag, String davHeader)
extends Record
Which incremental-sync tier a collection's server can serve, read from one
Depth:0 PROPFIND (
supported-report-set, ctag, sync token) plus the
DAV response header. Deliberately stateless and uncached here: the
probe is bound-time information whose caching (in the pair's sync state)
belongs to the caller, not to this client.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe incremental strategies of the plan, cheapest first. -
Constructor Summary
ConstructorsConstructorDescriptionServerCapabilities(boolean syncCollection, boolean calendarMultiget, boolean calendarQuery, boolean ctag, String davHeader) Creates an instance of aServerCapabilitiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecalendarMultigetrecord component.booleanReturns the value of thecalendarQueryrecord component.booleanctag()Returns the value of thectagrecord component.Returns the value of thedavHeaderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thesyncCollectionrecord component.tier()The cheapest tier this server can serve.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServerCapabilities
public ServerCapabilities(boolean syncCollection, boolean calendarMultiget, boolean calendarQuery, boolean ctag, String davHeader) Creates an instance of aServerCapabilitiesrecord class.- Parameters:
syncCollection- the value for thesyncCollectionrecord componentcalendarMultiget- the value for thecalendarMultigetrecord componentcalendarQuery- the value for thecalendarQueryrecord componentctag- the value for thectagrecord componentdavHeader- the value for thedavHeaderrecord component
-
-
Method Details
-
tier
The cheapest tier this server can serve. The windowed calendar-query floor belowServerCapabilities.SyncTier.ETAG_LISTINGis not probed: it is the engine's runtime fallback for a listing that turns out to carry no usable ETags, which no capability answer predicts.- Returns:
- the tier to start each run at
-
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 '=='. -
syncCollection
public boolean syncCollection()Returns the value of thesyncCollectionrecord component.- Returns:
- the value of the
syncCollectionrecord component
-
calendarMultiget
public boolean calendarMultiget()Returns the value of thecalendarMultigetrecord component.- Returns:
- the value of the
calendarMultigetrecord component
-
calendarQuery
public boolean calendarQuery()Returns the value of thecalendarQueryrecord component.- Returns:
- the value of the
calendarQueryrecord component
-
ctag
public boolean ctag()Returns the value of thectagrecord component.- Returns:
- the value of the
ctagrecord component
-
davHeader
Returns the value of thedavHeaderrecord component.- Returns:
- the value of the
davHeaderrecord component
-