You can directly instantiate the Web component and call the Get function inside your extension code like this
- Declare a field
private Web myWebComponent;
- Instantiate the Web component inside the constructor
myWebComponent = new Web(...);
- Register a
GotTextcallback inside your extension class
@Override void GotText(...) {
// Receive the text from here
}
- Use the
Getfunction from Web component like this
myWebComponent.Get(...);