I have an aspect class used to log the application, and I need information that's in the user session. Is there any way to provide the HttpSession for the aspect, or its attributes?
Thanks for any help.
I have an aspect class used to log the application, and I need information that's in the user session. Is there any way to provide the HttpSession for the aspect, or its attributes?
Thanks for any help.
If you pass the HttpSession as a parameter it can be used by the advice:
@Before("args(httpSession,..)")
public void logHttpSession(HttpSession httpSession) {
...
}