public class WinRmClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WinRmClient.Builder |
| Modifier and Type | Method and Description |
|---|---|
static WinRmClient.Builder |
builder(String endpoint)
Create a WinRmClient builder
|
static WinRmClient.Builder |
builder(String endpoint,
String authenticationScheme)
Create a WinRmClient builder
|
static WinRmClient.Builder |
builder(URL endpoint)
Create a WinRmClient builder
|
static WinRmClient.Builder |
builder(URL endpoint,
String authenticationScheme)
Create a WinRmClient builder
|
static <T> T |
checkNotNull(T check,
String msg) |
int |
command(String cmd,
Writer out,
Writer err) |
void |
disconnect() |
int |
getNumberOfReceiveCalls() |
public static WinRmClient.Builder builder(URL endpoint)
endpoint - - the url of the WSMAN service in the format https://machine:5986/wsmanpublic static WinRmClient.Builder builder(String endpoint)
endpoint - - the url of the WSMAN service in the format https://machine:5986/wsmanpublic static WinRmClient.Builder builder(URL endpoint, String authenticationScheme)
endpoint - - the url of the WSMAN service in the format https://machine:5986/wsmanauthenticationScheme - - one of Basic, NTLM, Kerberos. Default is NTLM (with Negotiate).public static WinRmClient.Builder builder(String endpoint, String authenticationScheme)
endpoint - - the url of the WSMAN service in the format https://machine:5986/wsmanauthenticationScheme - - one of Basic, NTLM, Kerberos. Default is NTLM (with Negotiate).public int getNumberOfReceiveCalls()
public void disconnect()
public static <T> T checkNotNull(T check,
String msg)
Copyright © 2017. All rights reserved.