751 B
751 B
InfoName - Lib
InfoName and URL library to make client-side connection set-ups easier
Just set the protocol schemes to OAC-InfoName ones by calling:
import dev.unlegitdqrk.unlegitlibrary.event.EventManager;
import org.openautonomousconnection.infonamelib.OacWebUrlInstaller;
import org.openautonomousconnection.infonamelib.ProtocolHandlerPackages;
import org.openautonomousconnection.protocol.side.client.ProtocolClient;
class Example {
private void init() {
EventManager eventManager = new EventManager();
ProtocolClient client = new MyImpl();
ProtocolHandlerPackages.installPackage("org.openautonomousconnection.infonamelib");
OacWebUrlInstaller.installOnce(eventManager, client);
}
}