Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class DefaultUrlSegmentRouter

Default IUrlSegmentRouter which resolves incoming/outgoing content for the request segment

Inheritance
System.Object
DefaultUrlSegmentRouter
Implements
Namespace: EPiServer.Web.Routing.Segments.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
public class DefaultUrlSegmentRouter : Object, IUrlSegmentRouter

Constructors

DefaultUrlSegmentRouter(IContentLoader, IRoutingSegmentLoader)

Initializes a new instance of the DefaultUrlSegmentRouter class.

Declaration
public DefaultUrlSegmentRouter(IContentLoader contentQueryable, IRoutingSegmentLoader routingSegmentLoader)
Parameters
Type Name Description
IContentLoader contentQueryable

The content queryable.

IRoutingSegmentLoader routingSegmentLoader

The routing segment loader.

Properties

ContentLoader

Declaration
protected IContentLoader ContentLoader { get; set; }
Property Value
Type Description
IContentLoader

Methods

GetRoutingSegment(ContentReference, String)

Gets the routing specific data for a node.

Declaration
public virtual IRoutable GetRoutingSegment(ContentReference contentLink, string preferredLanguageBranch)
Parameters
Type Name Description
ContentReference contentLink

The content link.

System.String preferredLanguageBranch

The preferred language branch.

Returns
Type Description
IRoutable

ResolveContentForIncoming(ContentReference, String, String)

Declaration
public virtual IContent ResolveContentForIncoming(ContentReference contentLink, string urlSegment, string preferredLanguage)
Parameters
Type Name Description
ContentReference contentLink
System.String urlSegment
System.String preferredLanguage
Returns
Type Description
IContent

Implements

Extension Methods