public final class StubConfiguration extends StubConfigurationBase
Constructor and Description |
---|
StubConfiguration()
Default Constructor.
|
StubConfiguration(ExecutionContext.SecurityContext securityContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<com.vmware.vapi.bindings.type.ErrorType> |
getErrorTypes()
Returns
ErrorType s to be used for resolving VMODL2 for
method invocations by the configured Stub . |
RetryPolicy |
getRetryPolicy() |
ExecutionContext.SecurityContext |
getSecurityContext() |
void |
registerErrorTypes(java.util.List<com.vmware.vapi.bindings.type.ErrorType> errors)
Registers a list of
ErrorType s to be used by the
configured stub for resolving VMODL2 errors received as
result of a method invocation. |
void |
setRetryPolicy(RetryPolicy retryPolicy) |
void |
setSecurityContext(ExecutionContext.SecurityContext context) |
public StubConfiguration()
public StubConfiguration(ExecutionContext.SecurityContext securityContext)
securityContext
- can be nullpublic void setSecurityContext(ExecutionContext.SecurityContext context)
context
- the security context that will be used in the stub.
can be null.public ExecutionContext.SecurityContext getSecurityContext()
getSecurityContext
in class StubConfigurationBase
SecurityContextFactory
public void registerErrorTypes(java.util.List<com.vmware.vapi.bindings.type.ErrorType> errors)
ErrorType
s to be used by the
configured stub for resolving VMODL2 errors received as
result of a method invocation.
The types for all standard VMODL2 errors are registered and resolvable by default. This method is useful for registration of additional types for custom errors.
errors
- types to register; can not be null
;
can not contain null
elementspublic java.util.Set<com.vmware.vapi.bindings.type.ErrorType> getErrorTypes()
StubConfigurationBase
ErrorType
s to be used for resolving VMODL2 for
method invocations by the configured Stub
.getErrorTypes
in class StubConfigurationBase
ErrorType
spublic void setRetryPolicy(RetryPolicy retryPolicy)
retryPolicy
- retry policy for failed invocations; can be
null
public RetryPolicy getRetryPolicy()
getRetryPolicy
in class StubConfigurationBase
null