This commit is contained in:
UnlegitDqrk
2026-02-11 23:16:35 +01:00
parent b8f1d4cb36
commit c1c09f8d2e
14 changed files with 398 additions and 889 deletions

View File

@@ -1,7 +1,8 @@
package org.openautonomousconnection.infonamelib.web;
import org.openautonomousconnection.infonamelib.OacSessionJar;
import org.openautonomousconnection.infonamelib.OacWebHttpURLConnection;
import org.openautonomousconnection.infonamelib.OacWebRequestBroker;
import org.openautonomousconnection.infonamelib.OacWebURLConnection;
import java.io.IOException;
import java.net.URL;
@@ -9,14 +10,13 @@ import java.net.URLConnection;
import java.net.URLStreamHandler;
/**
* URLStreamHandler for the "web" protocol.
*
* <p>Loaded via the "java.protocol.handler.pkgs" mechanism.</p>
* URLStreamHandler for the "web" protocol (loaded via java.protocol.handler.pkgs).
*/
public final class Handler extends URLStreamHandler {
private static final OacSessionJar SESSION_JAR = new OacSessionJar();
@Override
protected URLConnection openConnection(URL u) throws IOException {
return new OacWebURLConnection(u, OacWebRequestBroker.get());
return new OacWebHttpURLConnection(u, OacWebRequestBroker.get(), SESSION_JAR);
}
}