Search in sources :

Example 1 with WebSocketSSLProxy

use of com.microsoft.azure.toolkit.lib.common.utils.WebSocketSSLProxy in project azure-tools-for-java by Microsoft.

the class TunnelProxy method reset.

public void reset() {
    String host = appService.hostName().toLowerCase().replace("http://", "").replace("https://", "");
    String[] parts = host.split("\\.", 2);
    host = Joiner.on('.').join(parts[0], "scm", parts[1]);
    PublishingProfile publishingProfile = appService.getPublishingProfile();
    wssProxy = new WebSocketSSLProxy(String.format("wss://%s/AppServiceTunnel/Tunnel.ashx", host), publishingProfile.getGitUsername(), publishingProfile.getGitPassword());
}
Also used : PublishingProfile(com.microsoft.azure.toolkit.lib.appservice.model.PublishingProfile) WebSocketSSLProxy(com.microsoft.azure.toolkit.lib.common.utils.WebSocketSSLProxy)

Example 2 with WebSocketSSLProxy

use of com.microsoft.azure.toolkit.lib.common.utils.WebSocketSSLProxy in project azure-tools-for-java by microsoft.

the class TunnelProxy method reset.

public void reset() {
    String host = appService.hostName().toLowerCase().replace("http://", "").replace("https://", "");
    String[] parts = host.split("\\.", 2);
    host = Joiner.on('.').join(parts[0], "scm", parts[1]);
    PublishingProfile publishingProfile = appService.getPublishingProfile();
    wssProxy = new WebSocketSSLProxy(String.format("wss://%s/AppServiceTunnel/Tunnel.ashx", host), publishingProfile.getGitUsername(), publishingProfile.getGitPassword());
}
Also used : PublishingProfile(com.microsoft.azure.toolkit.lib.appservice.model.PublishingProfile) WebSocketSSLProxy(com.microsoft.azure.toolkit.lib.common.utils.WebSocketSSLProxy)

Aggregations

PublishingProfile (com.microsoft.azure.toolkit.lib.appservice.model.PublishingProfile)2 WebSocketSSLProxy (com.microsoft.azure.toolkit.lib.common.utils.WebSocketSSLProxy)2