This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Now I need a program which I call it DNS filter program,and I have a file called FilterTable.txt(Attachments).The functions of the program are as follows.I open an Internet exporer,if I keyin "www.hit.edu.cn"(its ip is 22.214.171.124),the program will search FilterTable and access google'DNS 126.96.36.199 to parse the site.But if I keyin "www.baidu.com",the program will search TilterTable.txt and return "cannot access!".
How can I write the program using java? Vvvvvvvvvvvvvvery thank you!
You're talking about an HTTP proxy. Instead of wring it from scratch, why not use an existing one? There used to be one called "Muffin", although it's probably outdated now. But a web search will find others. Any particular reason it needs to be written in Java?