File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes front contoller and intercepting filter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "front contoller and intercepting filter" Watch "front contoller and intercepting filter" New topic
Author

front contoller and intercepting filter

ravi kumaraguru
Greenhorn

Joined: Dec 29, 2008
Posts: 2
Hi ,

theoritically in handling reques processing, we can use both front controller as well as intercepting filter. Can you correct me with this statement.

Here is the question that needs the difference.

You are designing the presentation tier for a web application which required a centralized request handling to complete common processing required by each request.

which pattern provides the solution?

a remote proxy
b front controller
c service activator
d intercepting filter
e business delegate
f data access object


I feel we can use both front controller and intercepting filter. Am i correct?
Suvadip Mukherjee
Greenhorn

Joined: Dec 29, 2008
Posts: 2
This is a job of a Front Controller
Check Pea Body for more clarity


SCJP 1.4,SCWCD 5.0
ravi kumaraguru
Greenhorn

Joined: Dec 29, 2008
Posts: 2
Thanks a lot.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
An intercepting filter can also be used to handle common processing required by each request.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

You are correct that both Front Controller or Intercepting Filter could be used here. Without the question being more specific about needs, it's difficult to choose one over the other.

However, assuming the question requires only one answer...

If you read my notes, it points out that "centralized" would be a big clue toward Front Controller.

You might also notice in my notes that centralized control is also a consequence of Intercepting Filter, but I do not have it underlined there as a big clue because, exam-wise, it's more likely to be describing Front Controller.

The real exam would either require two answers to this question, only list one of FC or IF as answer options, or give you more design goal clues to help you out.


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: front contoller and intercepting filter
 
Similar Threads
Intercepting filter pattern vs Front Controller
Reg Front Controller Pattern...
HFSJ Mock Qn on Front Controller
Exact Front Controller In Realtime
Performing checks on each request