public class SessionStub extends com.vmware.vapi.internal.bindings.Stub implements Session
Session
API service.
WARNING: Internal class, subject to change in future versions.
SessionTypes.Info
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
SessionStub(ApiProvider apiProvider,
StubConfigurationBase config) |
SessionStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
char[] |
create()
Creates a session with the API.
|
void |
create(AsyncCallback<char[]> asyncCallback)
Creates a session with the API.
|
void |
create(AsyncCallback<char[]> asyncCallback,
InvocationConfig invocationConfig)
Creates a session with the API.
|
char[] |
create(InvocationConfig invocationConfig)
Creates a session with the API.
|
void |
delete()
Terminates the validity of a session token.
|
void |
delete(AsyncCallback<java.lang.Void> asyncCallback)
Terminates the validity of a session token.
|
void |
delete(AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Terminates the validity of a session token.
|
void |
delete(InvocationConfig invocationConfig)
Terminates the validity of a session token.
|
SessionTypes.Info |
get()
Returns information about the current session.
|
void |
get(AsyncCallback<SessionTypes.Info> asyncCallback)
Returns information about the current session.
|
void |
get(AsyncCallback<SessionTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about the current session.
|
SessionTypes.Info |
get(InvocationConfig invocationConfig)
Returns information about the current session.
|
public SessionStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public SessionStub(ApiProvider apiProvider, StubConfigurationBase config)
public char[] create()
Session
Synchronous method overload. Result of the invocation will be reported as a method return value.
public char[] create(InvocationConfig invocationConfig)
Session
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 create(AsyncCallback<char[]> asyncCallback)
Session
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Newly created session identifier to be used for authenticating further requests.
Operation Errors:
Unauthenticated
- if the session creation fails due to request specific issues. Due to the
security nature of the API the details of the error are not disclosed.
Please check the following preconditions if using a SAML token to authenticate:
ServiceUnavailable
- if session creation fails due to server specific issues, for example connection
to a back end component is failing. Due to the security nature of this API
further details will not be disclosed in the exception. Please refer to
component health information, administrative logs and product specific
documentation for possible causes.public void create(AsyncCallback<char[]> asyncCallback, InvocationConfig invocationConfig)
Session
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Newly created session identifier to be used for authenticating further requests.
Operation Errors:
Unauthenticated
- if the session creation fails due to request specific issues. Due to the
security nature of the API the details of the error are not disclosed.
Please check the following preconditions if using a SAML token to authenticate:
ServiceUnavailable
- if session creation fails due to server specific issues, for example connection
to a back end component is failing. Due to the security nature of this API
further details will not be disclosed in the exception. Please refer to
component health information, administrative logs and product specific
documentation for possible causes.public void delete()
Session
A session identifier is expected as part of the request.
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void delete(InvocationConfig invocationConfig)
Session
A session identifier is expected as part of the request.
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(AsyncCallback<java.lang.Void> asyncCallback)
Session
A session identifier is expected as part of the request.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Unauthenticated
- if the session id is missing from the request or the corresponding session
object cannot be found.
ServiceUnavailable
- if session deletion fails due to server specific issues, for example connection
to a back end component is failing. Due to the security nature of this API
further details will not be disclosed in the exception. Please refer to
component health information, administrative logs and product specific
documentation for possible causes.
public void delete(AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Session
A session identifier is expected as part of the request.
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:
Unauthenticated
- if the session id is missing from the request or the corresponding session
object cannot be found.
ServiceUnavailable
- if session deletion fails due to server specific issues, for example connection
to a back end component is failing. Due to the security nature of this API
further details will not be disclosed in the exception. Please refer to
component health information, administrative logs and product specific
documentation for possible causes.
public SessionTypes.Info get()
Session
A side effect of invoking this method may be a change to the session's last accessed time to the current time if this is supported by the session implementation. Invoking any other method in the API will also update the session's last accessed time.
This API is meant to serve the needs of various front end projects that may want to display the name of the user. Examples of this include various web based user interfaces and logging facilities.
Synchronous method overload. Result of the invocation will be reported as a method return value.
public SessionTypes.Info get(InvocationConfig invocationConfig)
Session
A side effect of invoking this method may be a change to the session's last accessed time to the current time if this is supported by the session implementation. Invoking any other method in the API will also update the session's last accessed time.
This API is meant to serve the needs of various front end projects that may want to display the name of the user. Examples of this include various web based user interfaces and logging facilities.
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(AsyncCallback<SessionTypes.Info> asyncCallback)
Session
A side effect of invoking this method may be a change to the session's last accessed time to the current time if this is supported by the session implementation. Invoking any other method in the API will also update the session's last accessed time.
This API is meant to serve the needs of various front end projects that may want to display the name of the user. Examples of this include various web based user interfaces and logging facilities.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the session.
Operation Errors:
Unauthenticated
- if the session id is missing from the request or the corresponding session
object cannot be found.
ServiceUnavailable
- if session retrieval fails due to server specific issues e.g. connection to back
end component is failing. Due to the security nature of this API further details
will not be disclosed in the error. Please refer to component health
information, administrative logs and product specific documentation for possible
causes.
public void get(AsyncCallback<SessionTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Session
A side effect of invoking this method may be a change to the session's last accessed time to the current time if this is supported by the session implementation. Invoking any other method in the API will also update the session's last accessed time.
This API is meant to serve the needs of various front end projects that may want to display the name of the user. Examples of this include various web based user interfaces and logging facilities.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Information about the session.
Operation Errors:
Unauthenticated
- if the session id is missing from the request or the corresponding session
object cannot be found.
ServiceUnavailable
- if session retrieval fails due to server specific issues e.g. connection to back
end component is failing. Due to the security nature of this API further details
will not be disclosed in the error. Please refer to component health
information, administrative logs and product specific documentation for possible
causes.