Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

front contoller and intercepting filter

 
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?
 
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.
 
Ranch Hand
Posts: 1512
  • 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.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • 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.
 
No matter. Try again. Fail again. Fail better. This time, do it with this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic