• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Intercepting Filters in Component diagram

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,
There are 2 ways to have a intercepting filter in web tier- using Servlet filters or using a JSF phase listener that fires at the beginning of the Request Processing Lifecycle? For authentication and audit tasks which one should be used for the assignment?
Also, if intercepting filters based on servlet API are used, then how to depict them in component diagram i.e. show them:
1. between <<JSP>> and <<FacesServlet>> i.e. JSP -> Intercepting Filter -> FacesServlet -> Backing Bean
2. between <<FacesServlet>> and <<ManagedBean>> i.e. JSP -> Intercepting Filter -> FacesServlet -> Intercepting Filter

Thanks
Amit
 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have put like this:

|<<Controller>> |--------------------uses-----------------|<<Phase Listener>>|
 
Kumar Amit
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rajan Choudhary wrote:I have put like this:

|<<Controller>> |--------------------uses-----------------|<<Phase Listener>>|


Isn't this incorrect as Intercepting filters are invoked by servlet container before the request is handled by JSF(FacesServlet)
 
Rajan Choudhary
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Phase Listeners are configured in faces-config.xml file and hence they are executed by container on instruction of the controller during the JSF life phase. Let me know if this makes sense.
 
If you want to look young and thin, hang around old, fat people. Or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic