Web protocol ready

This commit is contained in:
UnlegitDqrk
2026-02-10 19:34:28 +01:00
parent 1232330583
commit fcd9c57650
17 changed files with 921 additions and 131 deletions

View File

@@ -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());
}
}