Class IfHeaderList
Represents a list of IfHeaderConditions.
Inherited Members
Namespace:FubarDev.WebDavServer.Model.Headers
Assembly:FubarDev.WebDavServer.dll
Syntax
public class IfHeaderList
Properties
| Improve this Doc View SourceConditions
Gets the collection of conditions that must be satisfied by this list.
Declaration
[NotNull]
[ItemNotNull]
public IReadOnlyCollection<IfHeaderCondition> Conditions { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<IfHeaderCondition> |
Path
Gets the path to the destination relative to the BaseUrl.
Declaration
[NotNull]
public Uri Path { get; }
Property Value
Type | Description |
---|---|
Uri |
Remarks
Might be an absolute URL when the host or scheme don't match.
RelativeHref
Gets the resource tag relative to the RootUrl.
Declaration
[NotNull]
public Uri RelativeHref { get; }
Property Value
Type | Description |
---|---|
Uri |
Remarks
Might be an absolute URL when the host or scheme don't match.
RequiresEntityTag
Gets a value indicating whether this condition list requires the EntityTag of an IEntry for the evaluation.
Declaration
public bool RequiresEntityTag { get; }
Property Value
Type | Description |
---|---|
Boolean |
RequiresStateToken
Gets a value indicating whether this condition list requires the StateToken for the evaluation.
Declaration
public bool RequiresStateToken { get; }
Property Value
Type | Description |
---|---|
Boolean |
ResourceTag
Gets the resource tag which is always an absolute URI
Declaration
[NotNull]
public Uri ResourceTag { get; }
Property Value
Type | Description |
---|---|
Uri |
Remarks
When a relative URI gets sent from the client, then it gets converted into an absolute URI.
Methods
| Improve this Doc View SourceIsMatch(Nullable<EntityTag>, IReadOnlyCollection<Uri>)
Validates if all conditions match the passed entity tag and/or state tokens
Declaration
public bool IsMatch(EntityTag? etag, IReadOnlyCollection<Uri> stateTokens)
Parameters
Type | Name | Description |
---|---|---|
Nullable<EntityTag> | etag | The entity tag |
IReadOnlyCollection<Uri> | stateTokens | The state tokens |
Returns
Type | Description |
---|---|
Boolean | true when this condition matches |