Announcement Announcement Module
Collapse
No announcement yet.
Accessing HttpServletRequest when using HTTPInvoker Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Accessing HttpServletRequest when using HTTPInvoker

    When using HTTPInvoker, how can one access the HttpServletRequest inside the service object ?

    I need to access methods like getUserPrincipal() and isUserInRole("manager").

  • #2
    org.springframework.web.context.request.ServletReq uestAttributes sra = (org.springframework.web.context.request.ServletRe questAttributes) org.springframework.web.context.request.RequestCon textHolder.getRequestAttributes();

    Comment

    Working...
    X