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

@@ -1,8 +1,24 @@
# InfoName - Lib
InfoName and URL library to make client-side connection set-ups easier
InfoName and URL library to make client-side connection set-ups easier
<hr>
Just set the protocol schemes to OAC-InfoName ones by calling:
<code>InfoNames.registerOACInfoNameProtocols()</code>
```java
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);
}
}
```