Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

proxy server in java  RSS feed

 
akshay shetye
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to implement a proxy server in java. Is there any open source proxy server implemedtiaon in java. I was using the following code. I have to classed . One is main and other is ProxyserverThread. Will this code will be able to handel lots ot traffic if i deplaoy it for real use?? Is this approach right?? Also i want to replace some url with the new one.

 
akshay shetye
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why is no one replying?
 
Paul Clapham
Sheriff
Posts: 22502
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you haven't asked your question very well.

First of all you didn't say what kind of proxy you wanted to write. HTTP? FTP? Socks? Something else?

And then you posted some code, but you didn't ask any answerable questions about it. No, "Will this code will be able to handel lots ot traffic if i deplaoy it for real use??" isn't an answerable question. It's hard enough to look at code and tell what it does, let alone whether it does it correctly or whether it does it well.

But I would have to say if your actual goal is to write an HTTP proxy server in Java, I would recommend instead that you should just get an HTTP proxy server which has already been written, and don't worry about whether it was written in Java. Unless perhaps your goal is to learn about network programming. In which case you should not be worrying at this point about whether it's scalable.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!