| 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: 1506
|
|
|
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: 4725
|
|
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.
|
 |
 |
|
|
subject: front contoller and intercepting filter
|
|
|