Java Development News:

Java Protocol Handlers

By Brian Maso

01 Apr 2004 | TheServerSide.com

Discussion


This paper describes for you everything you need to know to exploit the java.net.URL custom plug-in architecture. It covers the java.net.URL architecture and how different java.net package objects interact to resolve URLs into resource streams. Knowing the architecture you'll see how to build your own protocol handlers, which involves (at a minimum) providing a concrete implementation of two important java.net packet classes: java.netURL.StreamHandler and java.net.URLConnection. You'll then see some tricks about deploying them in real-world Java execution environments.

Java Protocol Handlers