Class DefaultUrlSegmentRouter
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Default IUrl
Implements
Inherited Members
Namespace: EPiServer.Web.Routing.Segments.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[ServiceConfiguration(typeof(IUrlSegmentRouter), FactoryMember = "Create")]
public class DefaultUrlSegmentRouter : IUrlSegmentRouter
Constructors
DefaultUrlSegmentRouter(IContentLoader, IRoutingSegmentLoader, AncestorReferencesLoader)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the Default
Declaration
public DefaultUrlSegmentRouter(IContentLoader contentQueryable, IRoutingSegmentLoader routingSegmentLoader, AncestorReferencesLoader ancestorLoader)
Parameters
Type | Name | Description |
---|---|---|
IContent |
contentQueryable | The content queryable. |
IRouting |
routingSegmentLoader | The routing segment loader. |
Ancestor |
ancestorLoader | The ancestor loader. |
Properties
ContentLoader
Declaration
protected IContentLoader ContentLoader { get; set; }
Property Value
Type | Description |
---|---|
IContent |
RootResolver
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets or sets the root resolver.
Declaration
public Func<SiteDefinition, ContentReference> RootResolver { get; set; }
Property Value
Type | Description |
---|---|
System. |
The root resolver. |
Methods
Create(IServiceLocator)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Creates an instance of Default
Declaration
public static IUrlSegmentRouter Create(IServiceLocator locator)
Parameters
Type | Name | Description |
---|---|---|
IService |
locator | The service locator used to fill constructor arguments. |
Returns
Type | Description |
---|---|
IUrl |
An instance of DefaultUrlSegmentRouter. |
GetRoutingSegment(ContentReference, String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the routing specific data for a node.
Declaration
public virtual IRoutable GetRoutingSegment(ContentReference contentLink, string preferredLanguageBranch)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link. |
System. |
preferredLanguageBranch | The preferred language branch. |
Returns
Type | Description |
---|---|
IRoutable |
IsContentUnderRoot(ContentReference)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Determines whether the specified contentLink is located under the Root
Declaration
public virtual bool IsContentUnderRoot(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link. |
Returns
Type | Description |
---|---|
System. |
|
ResolveContentForIncoming(ContentReference, String, SegmentContext)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Resolves the content for incoming.
Declaration
public virtual ContentReference ResolveContentForIncoming(ContentReference contentLink, string urlSegment, SegmentContext segmentContext)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link. |
System. |
urlSegment | The URL segment. |
Segment |
segmentContext | The segment context. |
Returns
Type | Description |
---|---|
Content |
ResolveContentForOutgoing(ContentReference)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Resolves the node representing the preceding url segment
Declaration
public virtual ContentReference ResolveContentForOutgoing(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link. |
Returns
Type | Description |
---|---|
Content |
Node representing the preceding url segment |