File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Intercepting Filter design pattern in class diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Intercepting Filter design pattern in class diagram" Watch "Intercepting Filter design pattern in class diagram" New topic
Author

Intercepting Filter design pattern in class diagram

ananthakrishnan ramachandran
Ranch Hand

Joined: Jan 24, 2011
Posts: 52
Hi,
How to use show the flow of Intercepting Filter design pattern in class diagram in JSF .Is the below mentioned flow correct
JSF page->Intercepting Filer->Managed Bean
Rajan Choudhary
Ranch Hand

Joined: Mar 17, 2011
Posts: 196
If the filter is created for specific pages then your flow is right. If the filter is considered to be for all requests then showing dependency of controller on filter makes more sense and I have done the this.
Joao Bosco Jares
Ranch Hand

Joined: May 13, 2011
Posts: 44
Rajan Choudhary wrote:If the filter is created for specific pages then your flow is right. If the filter is considered to be for all requests then showing dependency of controller on filter makes more sense and I have done the this.


Hi friends,

The class diagram below sounds good for JSF class diagram implementation?

client->jsp->frontcontroller->filter->managedbean

Best Regards,
Rajan Choudhary
Ranch Hand

Joined: Mar 17, 2011
Posts: 196
looks ok to me. looks like you have filter chains, not sure the about the purpose of ExceptionHandleFilter at that place. faces-config is not required to be shown at all. If you show this one then why to leave web.xml as filter chain will be configured there. remember your business logic model classes take more importance than anything else in the class diagram. Do not miss out any backing bean model class.

As per cade's book, JSP uses Controller and controller uses model beans and that's enough. I did this.
Joao Bosco Jares
Ranch Hand

Joined: May 13, 2011
Posts: 44
Rajan,

thanks a lot one more time!! One more beer in my account for you..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Intercepting Filter design pattern in class diagram
 
Similar Threads
CX-310-081 and Filters
Difference between Intercepting FIlter and a normal Filter?
Questions on Part 2
JSF Suggestions Needed
Standard Tags, Design Pattern Qs