RegexRequestMatcher

class RegexRequestMatcher(pattern: Pattern, method: String) extends RequestMatcher

Uses a regular expression to decide whether a supplied the URL of a supplied HttpServletRequest. Can also be configured to match a specific HTTP method. The match is performed against the servletPath + pathInfo + queryString of the request and is case-sensitive by default. Case-insensitive matching can be used by using the constructor which takes the caseInsentitive argument.

class Object
trait Matchable
class Any

Value members

Constructors

def this(patternStr: String, method: String, caseInsensitive: Boolean)

Creates a case-sensitive Pattern instance to match against the request.

Creates a case-sensitive Pattern instance to match against the request.

Concrete methods

def matches(request: HttpServletRequest): Boolean

Performs the match of the request URL ( servletPath + pathInfo + queryString) against the compiled pattern.

Performs the match of the request URL ( servletPath + pathInfo + queryString) against the compiled pattern.