Web protocol ready
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user