Class UrlFragmentHandler
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Handles permanent link attribute fragments
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Core.Html.StringParsing.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[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
ExtractPermanentLink(FragmentParserContext, AttributeFragment, String, String, String)
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 |
|
ParsePossibleLink(FragmentParserContext, AttributeFragment, String, String, String)
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 |