Class AntPathMatcher
Inheritance
System.Object
AntPathMatcher
Assembly: Steeltoe.Common.dll
Syntax
public class AntPathMatcher : object, IPathMatcher
Constructors
|
Edit this page
View Source
AntPathMatcher()
Declaration
|
Edit this page
View Source
AntPathMatcher(String)
Declaration
public AntPathMatcher(string pathSeparator)
Parameters
Type |
Name |
Description |
System.String |
pathSeparator |
|
Fields
|
Edit this page
View Source
DEFAULT_PATH_SEPARATOR
Declaration
public const string DEFAULT_PATH_SEPARATOR = null
Field Value
Type |
Description |
System.String |
|
Properties
|
Edit this page
View Source
CachePatterns
Declaration
public virtual bool? CachePatterns { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Boolean> |
|
|
Edit this page
View Source
CaseSensitive
Declaration
public virtual bool CaseSensitive { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
PathSeparator
Declaration
public virtual string PathSeparator { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
TrimTokens
Declaration
public virtual bool TrimTokens { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Edit this page
View Source
Combine(String, String)
Declaration
public virtual string Combine(string pattern1, string pattern2)
Parameters
Type |
Name |
Description |
System.String |
pattern1 |
|
System.String |
pattern2 |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
DoMatch(String, String, Boolean, IDictionary<String, String>)
Declaration
protected virtual bool DoMatch(string pattern, string path, bool fullMatch, IDictionary<string, string> uriTemplateVariables)
Parameters
Type |
Name |
Description |
System.String |
pattern |
|
System.String |
path |
|
System.Boolean |
fullMatch |
|
IDictionary<System.String, System.String> |
uriTemplateVariables |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Declaration
public virtual string ExtractPathWithinPattern(string pattern, string path)
Parameters
Type |
Name |
Description |
System.String |
pattern |
|
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
public virtual IDictionary<string, string> ExtractUriTemplateVariables(string pattern, string path)
Parameters
Type |
Name |
Description |
System.String |
pattern |
|
System.String |
path |
|
Returns
Type |
Description |
IDictionary<System.String, System.String> |
|
|
Edit this page
View Source
GetPatternComparer(String)
Declaration
public virtual IComparer<string> GetPatternComparer(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
IComparer<System.String> |
|
|
Edit this page
View Source
GetStringMatcher(String)
Declaration
protected virtual AntPathMatcher.AntPathStringMatcher GetStringMatcher(string pattern)
Parameters
Type |
Name |
Description |
System.String |
pattern |
|
Returns
|
Edit this page
View Source
IsPattern(String)
Declaration
public virtual bool IsPattern(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Match(String, String)
Declaration
public virtual bool Match(string pattern, string path)
Parameters
Type |
Name |
Description |
System.String |
pattern |
|
System.String |
path |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
MatchStart(String, String)
Declaration
public virtual bool MatchStart(string pattern, string path)
Parameters
Type |
Name |
Description |
System.String |
pattern |
|
System.String |
path |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
TokenizePath(String)
Declaration
protected virtual string[] TokenizePath(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String[] |
|
|
Edit this page
View Source
TokenizePattern(String)
Declaration
protected virtual string[] TokenizePattern(string pattern)
Parameters
Type |
Name |
Description |
System.String |
pattern |
|
Returns
Type |
Description |
System.String[] |
|
Implements