Win a copy of Head First Android this week in the Android forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

How to put Filter in component diagram

 
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use a filter as authorization component ahead of all jsp or servlet.

So, i think it should be mentioned in component digram.

Servlet Filter is a component in webserver, but how to draw it in component diagram?
I means how to show it's relationship among other components like jsp servlet.

Filter is invoked by web container, not by jsp or servlet, so I think the dependency relationship is not feat here.

 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Interesting question.

I think you can just put this Filter component in a component diagram, and no need to display dependency, because there is no dependency.
 
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am also using a intercepting filter as authorization component but I am drawing a dependency from my jsp to the filter.
My reason for this is that even though there is perhaps no direct dependency, nevertheless all (http) requests originating from, say a button that was clicked, on the jsp will eventually pass thru the filter.
So one could argue that there is maybe "just" an indirect dependency, but a dependency nonetheless.
Another reason is more of an esthetic kind: having a component on a diagram with no links (dependency, association, ...) what so ever to any other component on the diagram just doesn't "look" good. It is as if the component has no purpose, so why put it on the diagram in the first place.

Regards
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I too had a filter and I showed dependency of JSPs on it and wrote a note describing the dependency!!

HTH
Ashwin
 
reply
    Bookmark Topic Watch Topic
  • New Topic