RegexRequestMatcher

org.beangle.web.servlet.filter.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.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

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.

Attributes

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.

Attributes