Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

front contoller and intercepting filter

 
ravi kumaraguru
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a job of a Front Controller
Check Pea Body for more clarity
 
ravi kumaraguru
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An intercepting filter can also be used to handle common processing required by each request.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic