Hi All,
the need to comply with a specific "strict" proxy raised again.
To test I'm following what @Erel suggested here.
Since SetProxy and the Java code are on the MainPage of a B4xPages project, I modified the java declaration to "public class MyProxyAuthenticator " (i.e. no more static)
I have three simple questions:
- is it better to call SetProxy from MainPage.Initialize so when its Create method starts the proxy is already properly setup?
- using it in Create, could SetProxy be called in a Wait For statement if turned to a ResumableSub with trailing return Null?
- should I use the format "pa.InitializeNewInstance(GetType(Me) & "$MyProxyAuthenticator" instead of "pa.InitializeNewInstance("<myproject name as from Project/Build Configuration".main$MyProxyAuthenticator" ?
Eventually, to maintain the latter, is the trailing ".main" still valid? No, it should be ".b4xmainpage"
As an update to the original thread, the way we found to "escape" the strict control operated by the proxy was to encapsulate the binary message in a JSON packet.
udg
the need to comply with a specific "strict" proxy raised again.
To test I'm following what @Erel suggested here.
Since SetProxy and the Java code are on the MainPage of a B4xPages project, I modified the java declaration to "public class MyProxyAuthenticator " (i.e. no more static)
I have three simple questions:
- is it better to call SetProxy from MainPage.Initialize so when its Create method starts the proxy is already properly setup?
- using it in Create, could SetProxy be called in a Wait For statement if turned to a ResumableSub with trailing return Null?
- should I use the format "pa.InitializeNewInstance(GetType(Me) & "$MyProxyAuthenticator" instead of "pa.InitializeNewInstance("<myproject name as from Project/Build Configuration".main$MyProxyAuthenticator" ?
Eventually, to maintain the latter, is the trailing ".main" still valid? No, it should be ".b4xmainpage"
As an update to the original thread, the way we found to "escape" the strict control operated by the proxy was to encapsulate the binary message in a JSON packet.
udg
Last edited: