Try our conversational search powered by Generative AI!

Class UrlFragmentHandler

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Handles permanent link attribute fragments

Inheritance
System.Object
UrlFragmentHandler
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core.Html.StringParsing.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(IFragmentAttributeHandler))]
public class UrlFragmentHandler : IFragmentAttributeHandler

Constructors

UrlFragmentHandler(ILinkAttributeMatch)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the UrlFragmentHandler class.

Declaration
public UrlFragmentHandler(ILinkAttributeMatch linkAttributeMatcher)
Parameters
Type Name Description
ILinkAttributeMatch linkAttributeMatcher

The link attribute matcher.

UrlFragmentHandler(ILinkAttributeMatch, IUrlResolver)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the UrlFragmentHandler class.

Declaration
public UrlFragmentHandler(ILinkAttributeMatch linkAttributeMatcher, IUrlResolver urlResolver)
Parameters
Type Name Description
ILinkAttributeMatch linkAttributeMatcher

The link attribute matcher.

IUrlResolver urlResolver

The URL resolver.

Methods

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Extracts the permanent link.

Declaration
protected void ExtractPermanentLink(FragmentParserContext context, AttributeFragment attribute, string permanentLink, string prefix, string suffix)
Parameters
Type Name Description
FragmentParserContext context

The context.

AttributeFragment attribute

The attribute.

System.String permanentLink

The permanent link.

System.String prefix

The prefix.

System.String suffix

The suffix.

ParseAttribute(FragmentParserContext, ElementFragment, AttributeFragment)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Declaration
public bool ParseAttribute(FragmentParserContext context, ElementFragment parentFragment, AttributeFragment attribute)
Parameters
Type Name Description
FragmentParserContext context

The current parser context that contains the source and where any results should be written.

ElementFragment parentFragment

The element fragment containing the attribute.

AttributeFragment attribute

The attribute that should be parsed.

Returns
Type Description
System.Boolean

true if the attribute was handled, otherwise false.

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Evaluates a possible link

Declaration
protected virtual bool ParsePossibleLink(FragmentParserContext context, AttributeFragment attribute, string attributeValue, string prefix, string suffix)
Parameters
Type Name Description
FragmentParserContext context

The context.

AttributeFragment attribute

The attribute.

System.String attributeValue

The attribute value.

System.String prefix

The prefix.

System.String suffix

The suffix.

Returns
Type Description
System.Boolean

Implements

Extension Methods