1 /***************************************
2 * *
3 * JBoss: The OpenSource J2EE WebOS *
4 * *
5 * Distributable under LGPL license. *
6 * See terms of license at gnu.org. *
7 * *
8 ***************************************/
9
10 package org.jboss.net.protocol.resource;
11
12 import java.io.IOException;
13
14 import java.net.URL;
15 import java.net.URLConnection;
16 import java.net.URLStreamHandler;
17
18 /**
19 * A protocol handler for the 'resource' protocol. Provides
20 * access to system resources.
21 *
22 * @version <tt>$Revision: 1.1 $</tt>
23 * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
24 */
25 public class Handler
26 extends URLStreamHandler
27 {
28 public URLConnection openConnection(final URL url)
29 throws IOException
30 {
31 return new ResourceURLConnection(url);
32 }
33 }