Programming fun at startup: Jesey writing an authentication filter
2) You can do it using the jersey filter. You have to implement a ResourceFilterFactory and handle the auth in ContainerRequestFilter. The detailed code is below. I like the approach 1 as it give complete lifecycle control. However if you need more specifc things like accessing QueryParams or PathParams then approach 2 is the way to goRead full article from Programming fun at startup: Jesey writing an authentication filter
No comments:
Post a Comment