• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to put Filter in component diagram

 
Juee Doo
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • 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.

 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • 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.
 
Ronald Wouters
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • 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
 
Ashwin Pai
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic