Table of Contents

Class UrlIndex

Namespace
Dynamicweb.Frontend.UrlHandling
Assembly
Dynamicweb.dll
public class UrlIndex
Inheritance
UrlIndex
Inherited Members

Properties

IndexOfQueryString

public ConcurrentDictionary<string, UrlNode> IndexOfQueryString { get; set; }

Property Value

ConcurrentDictionary<string, UrlNode>

Indexes

public static ConcurrentDictionary<string, UrlIndex> Indexes { get; }

Property Value

ConcurrentDictionary<string, UrlIndex>

PathIndex

public ConcurrentDictionary<string, UrlNode> PathIndex { get; set; }

Property Value

ConcurrentDictionary<string, UrlNode>

RootNodes

public List<UrlNode> RootNodes { get; set; }

Property Value

List<UrlNode>

Methods

AddOrUpdateIndexOfQueryString(UrlNode)

public void AddOrUpdateIndexOfQueryString(UrlNode node)

Parameters

node UrlNode

AddOrUpdatePathIndex(UrlNode)

public void AddOrUpdatePathIndex(UrlNode node)

Parameters

node UrlNode

BuildIndex()

public void BuildIndex()

BuildIndexes()

public static void BuildIndexes()

EnsureUniquePath(string)

public string EnsureUniquePath(string path)

Parameters

path string

Returns

string

GetIndex(string)

public static UrlIndex GetIndex(string name)

Parameters

name string

Returns

UrlIndex

GetNodeByPath(string)

public UrlNode? GetNodeByPath(string path)

Parameters

path string

Returns

UrlNode

GetNodeByPathForArea(string, int)

Finds a node by path, scoped to a specific area. This avoids the PathIndex collision that occurs when two language areas share the same index (UniqueForEachMasterWebsite=true) and have identical page paths. The path is matched against both the indexed (deduplicated) path and the natural path of the area's nodes; when the area has indexed nodes but none matches, null is returned. Falls back to PathIndex only when the index holds no nodes for the area at all.

public UrlNode? GetNodeByPathForArea(string path, int areaId)

Parameters

path string
areaId int

Returns

UrlNode

GetNodeByQuerystring(string)

public UrlNode? GetNodeByQuerystring(string queryString)

Parameters

queryString string

Returns

UrlNode

GetPathFromQueryString(string)

public string? GetPathFromQueryString(string queryString)

Parameters

queryString string

Returns

string

GetPathFromQueryString(string, string)

public string? GetPathFromQueryString(string queryString, string languageId)

Parameters

queryString string
languageId string

Returns

string

GetQueryStringByPath(string)

public UrlIndexPathLookupResult? GetQueryStringByPath(string path)

Parameters

path string

Returns

UrlIndexPathLookupResult

IndexNode(UrlNode)

public void IndexNode(UrlNode node)

Parameters

node UrlNode
To top