PDA

View Full Version : Whether current request is under secure context



tsandor
Nov 19th, 2004, 04:18 AM
Hi!

In my spring controller I'd like to know whether my request has any connection with any entry defined in "objectDefinitionSource" found in filterInvocationInterceptor. Is there any helper class to decide this?

By now I can check request.getRequestURI() and search for manually defined strings in it to decide, but it would be more elegant to check with the security engine, that my request is secured or not.

Thanks for any help.

Regards,
Thomas

Ben Alex
Nov 19th, 2004, 04:15 PM
Take a look at http://forum.springframework.org/showthread.php?t=11167 for background and intended refactorings to improve this area of the ObjectDefinitionSource.