public class

ELRequestMatcher

extends Object
implements RequestMatcher
java.lang.Object
   ↳ org.springframework.security.web.util.ELRequestMatcher

Class Overview

A RequestMatcher implementation which uses a SpEL expression

With the default EvaluationContext (ELRequestMatcherContext) you can use hasIpAdress() and hasHeader()

See DelegatingAuthenticationEntryPoint for an example configuration.

Summary

Public Constructors
ELRequestMatcher(String el)
Public Methods
EvaluationContext createELContext(HttpServletRequest request)
Subclasses can override this methode if they want to use a different EL root context
boolean matches(HttpServletRequest request)
Decides whether the rule implemented by the strategy matches the supplied request.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.security.web.util.RequestMatcher

Public Constructors

public ELRequestMatcher (String el)

Public Methods

public EvaluationContext createELContext (HttpServletRequest request)

Subclasses can override this methode if they want to use a different EL root context

Returns
  • EL root context which is used to evaluate the expression

public boolean matches (HttpServletRequest request)

Decides whether the rule implemented by the strategy matches the supplied request.

Parameters
request the request to check for a match
Returns
  • true if the request matches, false otherwise