Web protocol ready
This commit is contained in:
20
README.md
20
README.md
@@ -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);
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user