RelativeToAbsoluteUrlNormalizer Class
- Namespace
- Kampute.DocToolkit.Routing
- Assembly
- Kampute.DocToolkit.dll
Definition
Converts relative URLs to absolute URLs using a fixed base URL.
public sealed class RelativeToAbsoluteUrlNormalizer : DocumentUrlContextManager- Inheritance
- object
- DocumentUrlContextManager
- RelativeToAbsoluteUrlNormalizer
Remarks
This class provides a simple implementation of the URL adjustment infrastructure that converts all relative URLs to absolute URLs by combining them with a configurable base URL.
Thread Safety
All public members of the type are guaranteed to be thread-safe.
Constructors
| RelativeToAbsoluteUrlNormalizer(Uri) | Initializes a new instance of the RelativeToAbsoluteUrlNormalizer class with the specified base URL. |
| RelativeToAbsoluteUrlNormalizer(string) | Initializes a new instance of the RelativeToAbsoluteUrlNormalizer class with the specified base URL string. |
Properties
| BaseUrl | Gets the base URL used to create absolute URLs from relative URLs. |
Methods
| CreateScope(string, IDocumentModel) | Creates a new scope for the specified directory path and document model. |
