GET "/__admin/mappings"

This commit is contained in:
Stef Heyenrath
2017-01-24 22:06:25 +01:00
parent 45aa83ee91
commit 3f84ba8b20
44 changed files with 805 additions and 302 deletions

View File

@@ -11,6 +11,7 @@ namespace WireMock.Matchers
/// <seealso cref="WireMock.Matchers.IMatcher" />
public class RegexMatcher : IMatcher
{
private readonly string _pattern;
private readonly Regex _expression;
/// <summary>
@@ -21,7 +22,8 @@ namespace WireMock.Matchers
{
Check.NotNull(pattern, nameof(pattern));
_expression = new Regex(pattern, RegexOptions.Compiled);
_pattern = pattern;
_expression = new Regex(_pattern, RegexOptions.Compiled);
}
/// <summary>
@@ -45,5 +47,14 @@ namespace WireMock.Matchers
return false;
}
}
/// <summary>
/// Gets the pattern.
/// </summary>
/// <returns>Pattern</returns>
public string GetPattern()
{
return _pattern;
}
}
}