SaaS CMS has officially launched! Learn more now.

Class SimpleAddressSegment

The segment representing a SimpleAddress when routing.

Inheritance
System.Object
SimpleAddressSegment
Implements
Namespace: EPiServer.Web.Routing.Segments
Assembly: EPiServer.dll
Version: 7.19.2
Syntax
public class SimpleAddressSegment : NodeSegment, ISegment

Constructors

SimpleAddressSegment(String, String, IUrlSegmentRouter, IContentLoader)

Initializes a new instance of the SimpleAddressSegment class.

Declaration
public SimpleAddressSegment(string name, string friendlyUrlExtension, IUrlSegmentRouter urlSegmentRouter, IContentLoader contentLoader)
Parameters
Type Name Description
System.String name

Name of the segment.

System.String friendlyUrlExtension

The extension used for friendly URL generation.

IUrlSegmentRouter urlSegmentRouter

The router used when resolving nodes.

IContentLoader contentLoader

The content loader.

SimpleAddressSegment(String, String, IUrlSegmentRouter, IContentLoader, UrlResolver)

Initializes a new instance of the SimpleAddressSegment class.

Declaration
public SimpleAddressSegment(string name, string friendlyUrlExtension, IUrlSegmentRouter urlSegmentRouter, IContentLoader contentLoader, UrlResolver urlResolver)
Parameters
Type Name Description
System.String name

Name of the segment.

System.String friendlyUrlExtension

The extension used for friendly URL generation.

IUrlSegmentRouter urlSegmentRouter

The router used when resolving nodes.

IContentLoader contentLoader

The content loader.

UrlResolver urlResolver

The url resolver to use.

SimpleAddressSegment(String, String, IUrlSegmentRouter, ILanguageSegmentMatcher, IContentLoader, IUpdateCurrentLanguage)

Initializes a new instance of the SimpleAddressSegment class.

Declaration
[Obsolete("Use overload without IUpdateCurrentLanguage parameter")]
public SimpleAddressSegment(string name, string friendlyUrlExtension, IUrlSegmentRouter urlSegmentRouter, ILanguageSegmentMatcher languageSegment, IContentLoader contentLoader, IUpdateCurrentLanguage updateCurrentLanguage)
Parameters
Type Name Description
System.String name

Name of the segment.

System.String friendlyUrlExtension

The extension used for friendly URL generation.

IUrlSegmentRouter urlSegmentRouter

The router used when resolving nodes.

ILanguageSegmentMatcher languageSegment

The langue validator used.

IContentLoader contentLoader

The content loader.

IUpdateCurrentLanguage updateCurrentLanguage

A handler to update the current language setting.

Properties

MatchOneSegment

Gets or sets a value indicating whether only one segment should be matched for simple address.

Declaration
public bool MatchOneSegment { get; set; }
Property Value
Type Description
System.Boolean

true if only one segment is matched for simple address; otherwise, false.

Methods

GetIncomingNode(ContentReference, SegmentContext)

Get the next Node within the context.

Declaration
protected override ContentReference GetIncomingNode(ContentReference contentLink, SegmentContext context)
Parameters
Type Name Description
ContentReference contentLink

structure Node

SegmentContext context

Segment context

Returns
Type Description
ContentReference

structure Node

Overrides

RouteDataMatch(SegmentContext)

Set the node, language, and controller value.

Declaration
public override bool RouteDataMatch(SegmentContext context)
Parameters
Type Name Description
SegmentContext context

Segment context

Returns
Type Description
System.Boolean

True if a node is found that matches the url

Overrides

Implements

Extension Methods