This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am designing an application Firewall.For that i have to develop a Htpp Proxy Server.How can i capture all the network traffic with the proxy server and block the packets from going to the server.Is there any java package to do this.Please help me.
Assuming this your firewall setup is to have the firewall machine between the two networks, you need to set up a ServerSocket facing the outside world (the side making HTTP requests) on port 80 and listen for connections.
When you get a connection, you open a socket to the real web server on the other network niterface (unless you wish to block it). If the firewall doesn't physically separate the two networks, then HTTP clients must be configured to use your proxy server, or they'll just bypass it.