Class StringMatchUrlResolver
URI resolver class that uses string matching. The match can be against the whole string, a suffix or a prefix.
Implements
Inherited Members
Namespace: net.xmlcatalog
Assembly: Algenta.Colectica.Model.dll
Syntax
public class StringMatchUrlResolver : SimpleUrlResolver
Constructors
StringMatchUrlResolver(string, string, string)
Constructor that takes a match string and a replacement URI.
Declaration
public StringMatchUrlResolver(string elementName, string matchString, string replacementString)
Parameters
Type | Name | Description |
---|---|---|
string | elementName | Name of the catalog element from which this resolver was derived. |
string | matchString | URI or string which is matched |
string | replacementString | Replacement string that is used when there is a match |
StringMatchUrlResolver(string, string, string, StringMatchType)
Constructor that takes a match string, a replacement URI, and a match type.
Declaration
public StringMatchUrlResolver(string elementName, string matchString, string replacementString, StringMatchUrlResolver.StringMatchType matchType)
Parameters
Type | Name | Description |
---|---|---|
string | elementName | Name of the catalog element from which this resolver was derived. |
string | matchString | URI or string which is matched |
string | replacementString | Replacement string that is used when there is a match |
StringMatchUrlResolver.StringMatchType | matchType | Type of string match that is used |
Methods
ResolveUri(Uri, string)
Resolves a URI or string, if possible, to a locally controlled or trusted URI.
Declaration
public Uri ResolveUri(Uri baseUri, string relativeUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | baseUri | Base URI for relative URIs |
string | relativeUri | An absolute or relative URI |
Returns
Type | Description |
---|---|
Uri | A System.Uri, or null if the resolver can't match the URI |