File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet tunneling

 
pradeep kumar
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please give explanation about servlet tunneling
also give a small example
 
nirmal baba
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
There is nothing called servlet tunneling but certainly there is a concept called HTTP tunneling.
So let us try to understand what does HTTP tunneling means.
Most of the intranets work within the confines of a firewall that guards the intranet from direct influence of the external network. The firewall acts as a security wall for the intranet that protects it from malicious influences of internet.A proxy server,for example,acts as a firewall that allows the intranet users to surf through the web but does not allow them to connect to the network applications.
A typical firewall restricts all external communications from the intranet except the HTTP communications.So if a client behind a firewall(say an applet) wants to connect to an HTTP Server(where the servlet resides),then opening a simple socket on the client for initiating the communicaion with the server wont help since the firewall will block this request for being non HTTP.
In order to get through the firewall,u will have to wrap the client request in an HTTP message so that it will pierce throgh the firewall and reach the server.
This mechanism of encapsulating the client request in a HTTP message so that it may penetrate the firewall is called HTTP FIREWALL TUNNELING.
U will have to use the java.net.URL and java.net.URLConnection
classes for doing this.
This is a brief explanation. Any doubts,plz ask
Nirmal
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SOAP is an example of object passing using HTTP Tunneling.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nirmal,
What happens after u wrap the client request (some other protocol) in a HTTP request and the server receives the request? How will the server know where to redirect..
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, check out this thread
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic