Table of Contents

Class UrlQueryStringProvider

Namespace
Dynamicweb.Frontend.UrlHandling
Assembly
Dynamicweb.dll

A provider that can convert a querystring to a path and back again without using preloaded data in the URL index. It is the responsibility of the provider to implement a pattern that ensures uniqueness of the URL.

public abstract class UrlQueryStringProvider
Inheritance
UrlQueryStringProvider
Derived
Inherited Members

Methods

GetUrlQueryStringProviders()

Gets a collection of all querystring providers

public static IEnumerable<UrlQueryStringProvider> GetUrlQueryStringProviders()

Returns

IEnumerable<UrlQueryStringProvider>

TryResolvePath(string, string, out UrlResolveResult?)

Tries to resolve a path into a querystring for a specific language.

public virtual bool TryResolvePath(string path, string languageId, out UrlResolveResult? resolveResult)

Parameters

path string

The path, i.e. /mypage/my-awesome-product-prod12.

languageId string

The language the resolution should happen in. Typically the EcomLanguageId of the requested area.

resolveResult UrlResolveResult

The UrlResolveResult contains ResolvedQuerystring and RemainingPartOfPath.

Returns

bool

TryResolveQueryString(NameValueCollection, string, out UrlNode?)

Tries the resolve a query string to a url path for a specific language.

public virtual bool TryResolveQueryString(NameValueCollection queryString, string languageId, out UrlNode? resolvedPath)

Parameters

queryString NameValueCollection

The query string - i.e. 'id=123&productid=prod12'.

languageId string

The language the resolution should happen in. Typically the EcomLanguageId of the requested area.

resolvedPath UrlNode

The resolved path as a urlnode resulting in /my-awesome-product-prod12.

Returns

bool
To top