public class ProxyStub extends com.vmware.vapi.internal.bindings.Stub implements Proxy
Proxy
API service.
WARNING: Internal class, subject to change in future versions.
ProxyTypes.Config, ProxyTypes.Protocol, ProxyTypes.ServerStatus, ProxyTypes.TestResult
Constructor and Description |
---|
ProxyStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ProxyStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
void |
delete(java.lang.String protocol)
Deletes a proxy configuration for a specific protocol.
|
void |
delete(java.lang.String protocol,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes a proxy configuration for a specific protocol.
|
void |
delete(java.lang.String protocol,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes a proxy configuration for a specific protocol.
|
void |
delete(java.lang.String protocol,
InvocationConfig invocationConfig)
Deletes a proxy configuration for a specific protocol.
|
ProxyTypes.Config |
get(java.lang.String protocol)
Gets the proxy configuration for a specific protocol.
|
void |
get(java.lang.String protocol,
AsyncCallback<ProxyTypes.Config> asyncCallback)
Gets the proxy configuration for a specific protocol.
|
void |
get(java.lang.String protocol,
AsyncCallback<ProxyTypes.Config> asyncCallback,
InvocationConfig invocationConfig)
Gets the proxy configuration for a specific protocol.
|
ProxyTypes.Config |
get(java.lang.String protocol,
InvocationConfig invocationConfig)
Gets the proxy configuration for a specific protocol.
|
java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config> |
list()
Gets proxy configuration for all configured protocols.
|
void |
list(AsyncCallback<java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config>> asyncCallback)
Gets proxy configuration for all configured protocols.
|
void |
list(AsyncCallback<java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config>> asyncCallback,
InvocationConfig invocationConfig)
Gets proxy configuration for all configured protocols.
|
java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config> |
list(InvocationConfig invocationConfig)
Gets proxy configuration for all configured protocols.
|
void |
set(java.lang.String protocol,
ProxyTypes.Config config)
Configures which proxy server to use for the specified protocol.
|
void |
set(java.lang.String protocol,
ProxyTypes.Config config,
AsyncCallback<java.lang.Void> asyncCallback)
Configures which proxy server to use for the specified protocol.
|
void |
set(java.lang.String protocol,
ProxyTypes.Config config,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Configures which proxy server to use for the specified protocol.
|
void |
set(java.lang.String protocol,
ProxyTypes.Config config,
InvocationConfig invocationConfig)
Configures which proxy server to use for the specified protocol.
|
ProxyTypes.TestResult |
test(java.lang.String host,
java.lang.String protocol,
ProxyTypes.Config config)
Tests a proxy configuration by testing the connection to the proxy server and
test host.
|
void |
test(java.lang.String host,
java.lang.String protocol,
ProxyTypes.Config config,
AsyncCallback<ProxyTypes.TestResult> asyncCallback)
Tests a proxy configuration by testing the connection to the proxy server and
test host.
|
void |
test(java.lang.String host,
java.lang.String protocol,
ProxyTypes.Config config,
AsyncCallback<ProxyTypes.TestResult> asyncCallback,
InvocationConfig invocationConfig)
Tests a proxy configuration by testing the connection to the proxy server and
test host.
|
ProxyTypes.TestResult |
test(java.lang.String host,
java.lang.String protocol,
ProxyTypes.Config config,
InvocationConfig invocationConfig)
Tests a proxy configuration by testing the connection to the proxy server and
test host.
|
public ProxyStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ProxyStub(ApiProvider apiProvider, StubConfigurationBase config)
public ProxyTypes.TestResult test(java.lang.String host, java.lang.String protocol, ProxyTypes.Config config)
Proxy
Synchronous method overload. Result of the invocation will be reported as a method return value.
public ProxyTypes.TestResult test(java.lang.String host, java.lang.String protocol, ProxyTypes.Config config, InvocationConfig invocationConfig)
Proxy
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void test(java.lang.String host, java.lang.String protocol, ProxyTypes.Config config, AsyncCallback<ProxyTypes.TestResult> asyncCallback)
Proxy
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Status of proxy settings.
Operation Errors:
Error
- Generic error.
public void test(java.lang.String host, java.lang.String protocol, ProxyTypes.Config config, AsyncCallback<ProxyTypes.TestResult> asyncCallback, InvocationConfig invocationConfig)
Proxy
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
Status of proxy settings.
Operation Errors:
Error
- Generic error.
test
in interface Proxy
host
- A hostname, IPv4 or Ipv6 address.protocol
- Protocol whose proxy is to be tested.config
- Proxy configuration to test.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void set(java.lang.String protocol, ProxyTypes.Config config)
Proxy
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void set(java.lang.String protocol, ProxyTypes.Config config, InvocationConfig invocationConfig)
Proxy
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void set(java.lang.String protocol, ProxyTypes.Config config, AsyncCallback<java.lang.Void> asyncCallback)
Proxy
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error.
public void set(java.lang.String protocol, ProxyTypes.Config config, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Proxy
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Error
- Generic error.
set
in interface Proxy
protocol
- The protocol for which proxy should be set.config
- Proxy configuration for the specific protocol.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String protocol)
Proxy
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void delete(java.lang.String protocol, InvocationConfig invocationConfig)
Proxy
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void delete(java.lang.String protocol, AsyncCallback<java.lang.Void> asyncCallback)
Proxy
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error.
public void delete(java.lang.String protocol, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Proxy
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Error
- Generic error.
public java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config> list()
Proxy
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config> list(InvocationConfig invocationConfig)
Proxy
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void list(AsyncCallback<java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config>> asyncCallback)
Proxy
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Proxy configuration for all configured protocols.
Operation Errors:
Error
- Generic error.
public void list(AsyncCallback<java.util.Map<ProxyTypes.Protocol,ProxyTypes.Config>> asyncCallback, InvocationConfig invocationConfig)
Proxy
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
Proxy configuration for all configured protocols.
Operation Errors:
Error
- Generic error.
public ProxyTypes.Config get(java.lang.String protocol)
Proxy
Synchronous method overload. Result of the invocation will be reported as a method return value.
public ProxyTypes.Config get(java.lang.String protocol, InvocationConfig invocationConfig)
Proxy
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void get(java.lang.String protocol, AsyncCallback<ProxyTypes.Config> asyncCallback)
Proxy
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Proxy configuration for a specific protocol.
Operation Errors:
Error
- Generic error.
public void get(java.lang.String protocol, AsyncCallback<ProxyTypes.Config> asyncCallback, InvocationConfig invocationConfig)
Proxy
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
Proxy configuration for a specific protocol.
Operation Errors:
Error
- Generic error.