public class DownloadSessionStub extends com.vmware.vapi.internal.bindings.Stub implements DownloadSession
DownloadSession
API service.
WARNING: Internal class, subject to change in future versions.
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID, RESOURCE_TYPE
Constructor and Description |
---|
DownloadSessionStub(ApiProvider apiProvider,
StubConfigurationBase config) |
DownloadSessionStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(java.lang.String downloadSessionId)
Cancels the download session.
|
void |
cancel(java.lang.String downloadSessionId,
AsyncCallback<java.lang.Void> asyncCallback)
Cancels the download session.
|
void |
cancel(java.lang.String downloadSessionId,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Cancels the download session.
|
void |
cancel(java.lang.String downloadSessionId,
InvocationConfig invocationConfig)
Cancels the download session.
|
java.lang.String |
create(java.lang.String clientToken,
DownloadSessionModel createSpec)
Creates a new download session.
|
void |
create(java.lang.String clientToken,
DownloadSessionModel createSpec,
AsyncCallback<java.lang.String> asyncCallback)
Creates a new download session.
|
void |
create(java.lang.String clientToken,
DownloadSessionModel createSpec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Creates a new download session.
|
java.lang.String |
create(java.lang.String clientToken,
DownloadSessionModel createSpec,
InvocationConfig invocationConfig)
Creates a new download session.
|
void |
delete(java.lang.String downloadSessionId)
Deletes a download session.
|
void |
delete(java.lang.String downloadSessionId,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes a download session.
|
void |
delete(java.lang.String downloadSessionId,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes a download session.
|
void |
delete(java.lang.String downloadSessionId,
InvocationConfig invocationConfig)
Deletes a download session.
|
void |
fail(java.lang.String downloadSessionId,
java.lang.String clientErrorMessage)
Terminates the download session with a client specified error message.
|
void |
fail(java.lang.String downloadSessionId,
java.lang.String clientErrorMessage,
AsyncCallback<java.lang.Void> asyncCallback)
Terminates the download session with a client specified error message.
|
void |
fail(java.lang.String downloadSessionId,
java.lang.String clientErrorMessage,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Terminates the download session with a client specified error message.
|
void |
fail(java.lang.String downloadSessionId,
java.lang.String clientErrorMessage,
InvocationConfig invocationConfig)
Terminates the download session with a client specified error message.
|
DownloadSessionModel |
get(java.lang.String downloadSessionId)
Gets the download session with the specified identifier, including the most
up-to-date status information for the session.
|
void |
get(java.lang.String downloadSessionId,
AsyncCallback<DownloadSessionModel> asyncCallback)
Gets the download session with the specified identifier, including the most
up-to-date status information for the session.
|
void |
get(java.lang.String downloadSessionId,
AsyncCallback<DownloadSessionModel> asyncCallback,
InvocationConfig invocationConfig)
Gets the download session with the specified identifier, including the most
up-to-date status information for the session.
|
DownloadSessionModel |
get(java.lang.String downloadSessionId,
InvocationConfig invocationConfig)
Gets the download session with the specified identifier, including the most
up-to-date status information for the session.
|
void |
keepAlive(java.lang.String downloadSessionId,
java.lang.Long progress)
Keeps a download session alive.
|
void |
keepAlive(java.lang.String downloadSessionId,
java.lang.Long progress,
AsyncCallback<java.lang.Void> asyncCallback)
Keeps a download session alive.
|
void |
keepAlive(java.lang.String downloadSessionId,
java.lang.Long progress,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Keeps a download session alive.
|
void |
keepAlive(java.lang.String downloadSessionId,
java.lang.Long progress,
InvocationConfig invocationConfig)
Keeps a download session alive.
|
java.util.List<java.lang.String> |
list(java.lang.String libraryItemId)
Lists the identifiers of the download sessions created by the calling user.
|
void |
list(java.lang.String libraryItemId,
AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Lists the identifiers of the download sessions created by the calling user.
|
void |
list(java.lang.String libraryItemId,
AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Lists the identifiers of the download sessions created by the calling user.
|
java.util.List<java.lang.String> |
list(java.lang.String libraryItemId,
InvocationConfig invocationConfig)
Lists the identifiers of the download sessions created by the calling user.
|
public DownloadSessionStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public DownloadSessionStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.lang.String create(java.lang.String clientToken, DownloadSessionModel createSpec)
DownloadSession
Synchronous method overload. Result of the invocation will be reported as a method return value.
create
in interface DownloadSession
clientToken
- A unique token generated by the client for each creation request. The token
should be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751
. This token can be used to guarantee
idempotent creation.
If not specified creation is not idempotent.createSpec
- Specification for the new download session to be created.com.vmware.content.library.item.DownloadSession
.public java.lang.String create(java.lang.String clientToken, DownloadSessionModel createSpec, InvocationConfig invocationConfig)
DownloadSession
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
create
in interface DownloadSession
clientToken
- A unique token generated by the client for each creation request. The token
should be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751
. This token can be used to guarantee
idempotent creation.
If not specified creation is not idempotent.createSpec
- Specification for the new download session to be created.invocationConfig
- Configuration for the method invocation.com.vmware.content.library.item.DownloadSession
.public void create(java.lang.String clientToken, DownloadSessionModel createSpec, AsyncCallback<java.lang.String> asyncCallback)
DownloadSession
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Identifier of the new download session being created.
The return value will be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.
Operation Errors:
InvalidArgument
- if the session specification is not valid.
InvalidArgument
- format.
NotFound
- if the library item targeted by the download does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.library.Item
referenced by the property
DownloadSessionModel.getLibraryItemId()
requires ContentLibrary.DownloadSession
. create
in interface DownloadSession
clientToken
- A unique token generated by the client for each creation request. The token
should be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751
. This token can be used to guarantee
idempotent creation.
If not specified creation is not idempotent.createSpec
- Specification for the new download session to be created.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void create(java.lang.String clientToken, DownloadSessionModel createSpec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
DownloadSession
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:
Identifier of the new download session being created.
The return value will be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.
Operation Errors:
InvalidArgument
- if the session specification is not valid.
InvalidArgument
- format.
NotFound
- if the library item targeted by the download does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.library.Item
referenced by the property
DownloadSessionModel.getLibraryItemId()
requires ContentLibrary.DownloadSession
. create
in interface DownloadSession
clientToken
- A unique token generated by the client for each creation request. The token
should be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751
. This token can be used to guarantee
idempotent creation.
If not specified creation is not idempotent.createSpec
- Specification for the new download session to be created.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public DownloadSessionModel get(java.lang.String downloadSessionId)
DownloadSession
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface DownloadSession
downloadSessionId
- Identifier of the download session to retrieve.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.DownloadSessionModel
instance with
the given downloadSessionId
.public DownloadSessionModel get(java.lang.String downloadSessionId, InvocationConfig invocationConfig)
DownloadSession
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
get
in interface DownloadSession
downloadSessionId
- Identifier of the download session to retrieve.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.invocationConfig
- Configuration for the method invocation.DownloadSessionModel
instance with
the given downloadSessionId
.public void get(java.lang.String downloadSessionId, AsyncCallback<DownloadSessionModel> asyncCallback)
DownloadSession
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The DownloadSessionModel
instance with
the given downloadSessionId
.
Operation Errors:
NotFound
- if no download session with the given downloadSessionId
exists.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. get
in interface DownloadSession
downloadSessionId
- Identifier of the download session to retrieve.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String downloadSessionId, AsyncCallback<DownloadSessionModel> asyncCallback, InvocationConfig invocationConfig)
DownloadSession
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:
The DownloadSessionModel
instance with
the given downloadSessionId
.
Operation Errors:
NotFound
- if no download session with the given downloadSessionId
exists.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. get
in interface DownloadSession
downloadSessionId
- Identifier of the download session to retrieve.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.List<java.lang.String> list(java.lang.String libraryItemId)
DownloadSession
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface DownloadSession
libraryItemId
- Library item identifier on which to filter results.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.
If not specified all download session identifiers are listed.List
of identifiers of all download sessions created by
the calling user.
The return value will contain identifiers for the resource type: com.vmware.content.library.item.DownloadSession
.public java.util.List<java.lang.String> list(java.lang.String libraryItemId, InvocationConfig invocationConfig)
DownloadSession
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
list
in interface DownloadSession
libraryItemId
- Library item identifier on which to filter results.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.
If not specified all download session identifiers are listed.invocationConfig
- Configuration for the method invocation.List
of identifiers of all download sessions created by
the calling user.
The return value will contain identifiers for the resource type: com.vmware.content.library.item.DownloadSession
.public void list(java.lang.String libraryItemId, AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
DownloadSession
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The List
of identifiers of all download sessions created by
the calling user.
The return value will contain identifiers for the resource type: com.vmware.content.library.item.DownloadSession
.
Operation Errors:
NotFound
- if a library item identifier is given for an item which does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.library.item.DownloadSession
referenced by
the parameter libraryItemId
requires ContentLibrary.DownloadSession
. list
in interface DownloadSession
libraryItemId
- Library item identifier on which to filter results.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.
If not specified all download session identifiers are listed.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(java.lang.String libraryItemId, AsyncCallback<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
DownloadSession
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:
The List
of identifiers of all download sessions created by
the calling user.
The return value will contain identifiers for the resource type: com.vmware.content.library.item.DownloadSession
.
Operation Errors:
NotFound
- if a library item identifier is given for an item which does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.library.item.DownloadSession
referenced by
the parameter libraryItemId
requires ContentLibrary.DownloadSession
. list
in interface DownloadSession
libraryItemId
- Library item identifier on which to filter results.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.
If not specified all download session identifiers are listed.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void keepAlive(java.lang.String downloadSessionId, java.lang.Long progress)
DownloadSession
DownloadSessionModel.State.ACTIVE
state.
If there is no activity for a download session for a certain period of time, the download session will expire. The download session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this method enables a client to specifically extend the lifetime of an active download session.
Synchronous method overload. Result of the invocation will be reported as a method return value.
keepAlive
in interface DownloadSession
downloadSessionId
- Identifier of the download session whose lifetime should be extended.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.progress
- Optional update to the progress property of the session. If specified, the new
progress should be greater then the current progress. See DownloadSessionModel.getClientProgress()
.
If not specified the progress is not updated.public void keepAlive(java.lang.String downloadSessionId, java.lang.Long progress, InvocationConfig invocationConfig)
DownloadSession
DownloadSessionModel.State.ACTIVE
state.
If there is no activity for a download session for a certain period of time, the download session will expire. The download session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this method enables a client to specifically extend the lifetime of an active download 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.
keepAlive
in interface DownloadSession
downloadSessionId
- Identifier of the download session whose lifetime should be extended.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.progress
- Optional update to the progress property of the session. If specified, the new
progress should be greater then the current progress. See DownloadSessionModel.getClientProgress()
.
If not specified the progress is not updated.invocationConfig
- Configuration for the method invocation.public void keepAlive(java.lang.String downloadSessionId, java.lang.Long progress, AsyncCallback<java.lang.Void> asyncCallback)
DownloadSession
DownloadSessionModel.State.ACTIVE
state.
If there is no activity for a download session for a certain period of time, the download session will expire. The download session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this method enables a client to specifically extend the lifetime of an active download session.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if no download session with the given identifier exists.
NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. keepAlive
in interface DownloadSession
downloadSessionId
- Identifier of the download session whose lifetime should be extended.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.progress
- Optional update to the progress property of the session. If specified, the new
progress should be greater then the current progress. See DownloadSessionModel.getClientProgress()
.
If not specified the progress is not updated.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void keepAlive(java.lang.String downloadSessionId, java.lang.Long progress, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
DownloadSession
DownloadSessionModel.State.ACTIVE
state.
If there is no activity for a download session for a certain period of time, the download session will expire. The download session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this method enables a client to specifically extend the lifetime of an active download session.
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:
NotFound
- if no download session with the given identifier exists.
NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. keepAlive
in interface DownloadSession
downloadSessionId
- Identifier of the download session whose lifetime should be extended.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.progress
- Optional update to the progress property of the session. If specified, the new
progress should be greater then the current progress. See DownloadSessionModel.getClientProgress()
.
If not specified the progress is not updated.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void cancel(java.lang.String downloadSessionId)
DownloadSession
Synchronous method overload. Result of the invocation will be reported as a method return value.
cancel
in interface DownloadSession
downloadSessionId
- Identifer of the download session that should be canceled.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.public void cancel(java.lang.String downloadSessionId, InvocationConfig invocationConfig)
DownloadSession
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
cancel
in interface DownloadSession
downloadSessionId
- Identifer of the download session that should be canceled.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.invocationConfig
- Configuration for the method invocation.public void cancel(java.lang.String downloadSessionId, AsyncCallback<java.lang.Void> asyncCallback)
DownloadSession
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if no download session with the given identifier exists.
NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. cancel
in interface DownloadSession
downloadSessionId
- Identifer of the download session that should be canceled.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void cancel(java.lang.String downloadSessionId, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
DownloadSession
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:
NotFound
- if no download session with the given identifier exists.
NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. cancel
in interface DownloadSession
downloadSessionId
- Identifer of the download session that should be canceled.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String downloadSessionId)
DownloadSession
Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item.
Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.
Synchronous method overload. Result of the invocation will be reported as a method return value.
delete
in interface DownloadSession
downloadSessionId
- Identifier of the download session to be deleted.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.public void delete(java.lang.String downloadSessionId, InvocationConfig invocationConfig)
DownloadSession
Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item.
Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
delete
in interface DownloadSession
downloadSessionId
- Identifier of the download session to be deleted.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String downloadSessionId, AsyncCallback<java.lang.Void> asyncCallback)
DownloadSession
Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item.
Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the download session does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. delete
in interface DownloadSession
downloadSessionId
- Identifier of the download session to be deleted.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void delete(java.lang.String downloadSessionId, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
DownloadSession
Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item.
Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.
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:
NotFound
- if the download session does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. delete
in interface DownloadSession
downloadSessionId
- Identifier of the download session to be deleted.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void fail(java.lang.String downloadSessionId, java.lang.String clientErrorMessage)
DownloadSession
This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
Synchronous method overload. Result of the invocation will be reported as a method return value.
fail
in interface DownloadSession
downloadSessionId
- Identifier of the download session to fail.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.clientErrorMessage
- Client side error message. This can be useful in providing some extra details
about the client side failure. Note that the message won't be translated to the
user's locale.public void fail(java.lang.String downloadSessionId, java.lang.String clientErrorMessage, InvocationConfig invocationConfig)
DownloadSession
This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
fail
in interface DownloadSession
downloadSessionId
- Identifier of the download session to fail.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.clientErrorMessage
- Client side error message. This can be useful in providing some extra details
about the client side failure. Note that the message won't be translated to the
user's locale.invocationConfig
- Configuration for the method invocation.public void fail(java.lang.String downloadSessionId, java.lang.String clientErrorMessage, AsyncCallback<java.lang.Void> asyncCallback)
DownloadSession
This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the download session does not exist.
NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. fail
in interface DownloadSession
downloadSessionId
- Identifier of the download session to fail.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.clientErrorMessage
- Client side error message. This can be useful in providing some extra details
about the client side failure. Note that the message won't be translated to the
user's locale.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void fail(java.lang.String downloadSessionId, java.lang.String clientErrorMessage, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
DownloadSession
This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
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:
NotFound
- if the download session does not exist.
NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. fail
in interface DownloadSession
downloadSessionId
- Identifier of the download session to fail.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.clientErrorMessage
- Client side error message. This can be useful in providing some extra details
about the client side failure. Note that the message won't be translated to the
user's locale.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.