Finished
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user