Is this possible to define a Spring bean in applicationContext.xml that takes an instance of HttpRequest as a constructor argument?
The bean I'm trying to create is an instance of org.keycloak.adapters.springsecurity.facade.WrappedHttpServletRequest
. The reason behind this is that I want to use Spring AOP to intercept a method that's invoked from that class. Is this possible?
That's the constructor code:
public WrappedHttpServletRequest(HttpServletRequest request) {
Assert.notNull(request, "HttpServletRequest required");
this.request = request;
}