22 lines
646 B
Java
22 lines
646 B
Java
|
|
package org.openautonomousconnection.infonamelib.web;
|
||
|
|
|
||
|
|
import org.openautonomousconnection.infonamelib.OacWebRequestBroker;
|
||
|
|
import org.openautonomousconnection.infonamelib.OacWebURLConnection;
|
||
|
|
|
||
|
|
import java.io.IOException;
|
||
|
|
import java.net.URL;
|
||
|
|
import java.net.URLConnection;
|
||
|
|
import java.net.URLStreamHandler;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* URLStreamHandler for the "web" protocol.
|
||
|
|
*
|
||
|
|
* <p>Loaded via the "java.protocol.handler.pkgs" mechanism.</p>
|
||
|
|
*/
|
||
|
|
public final class Handler extends URLStreamHandler {
|
||
|
|
|
||
|
|
@Override
|
||
|
|
protected URLConnection openConnection(URL u) throws IOException {
|
||
|
|
return new OacWebURLConnection(u, OacWebRequestBroker.get());
|
||
|
|
}
|
||
|
|
}
|