public class S3TaskClientImpl extends Object implements S3TaskClient
Constructor and Description |
---|
S3TaskClientImpl(ContentStore contentStore) |
Modifier and Type | Method and Description |
---|---|
DeleteStreamingTaskResult |
deleteStreaming(String spaceId)
Deletes a streaming distribution for a space.
|
DisableStreamingTaskResult |
disableStreaming(String spaceId)
Disables streaming on a space.
|
EnableStreamingTaskResult |
enableStreaming(String spaceId,
boolean secure)
Enables streaming on a space.
|
GetSignedUrlTaskResult |
getSignedUrl(String spaceId,
String contentId,
String resourcePrefix)
Retrieves a signed URL for a media file that is streamed through a secure
distribution; uses default minutes to expire (480) and allows streaming to
any IP address
|
GetSignedUrlTaskResult |
getSignedUrl(String spaceId,
String contentId,
String resourcePrefix,
int minutesToExpire,
String ipAddress)
Retrieves a signed URL for a media file that is streamed through a secure
distribution
|
GetUrlTaskResult |
getUrl(String spaceId,
String contentId,
String resourcePrefix)
Retrieves a URL for a media file that is streamed via an open distribution
|
public S3TaskClientImpl(ContentStore contentStore)
public EnableStreamingTaskResult enableStreaming(String spaceId, boolean secure) throws ContentStoreException
enableStreaming
in interface S3TaskClient
spaceId
- the ID of the space where streaming will be enabledsecure
- true if signed URLs should be required to stream space contentContentStoreException
- on errorpublic DisableStreamingTaskResult disableStreaming(String spaceId) throws ContentStoreException
disableStreaming
in interface S3TaskClient
spaceId
- the ID of the space where streaming will be disabledContentStoreException
- on erropublic DeleteStreamingTaskResult deleteStreaming(String spaceId) throws ContentStoreException
deleteStreaming
in interface S3TaskClient
spaceId
- the ID of the space where streaming will be disabledContentStoreException
- on errorpublic GetUrlTaskResult getUrl(String spaceId, String contentId, String resourcePrefix) throws ContentStoreException
getUrl
in interface S3TaskClient
spaceId
- name of the space where the content to be streamed is storedcontentId
- name of the content item to be streamedresourcePrefix
- a prefix on the content item which may be required by
the streaming viewer/player (may be null)ContentStoreException
- on errorpublic GetSignedUrlTaskResult getSignedUrl(String spaceId, String contentId, String resourcePrefix) throws ContentStoreException
getSignedUrl
in interface S3TaskClient
spaceId
- name of the space where the content to be streamed is storedcontentId
- name of the content item to be streamedresourcePrefix
- a prefix on the content item which may be required by
the streaming viewer/player (may be null)ContentStoreException
- on errorpublic GetSignedUrlTaskResult getSignedUrl(String spaceId, String contentId, String resourcePrefix, int minutesToExpire, String ipAddress) throws ContentStoreException
getSignedUrl
in interface S3TaskClient
spaceId
- name of the space where the content to be streamed is storedcontentId
- name of the content item to be streamedresourcePrefix
- a prefix on the content item which may be required by
the streaming viewer/playerminutesToExpire
- number of minutes that the stream should be available
for viewing through the retrieved URLipAddress
- ip address range where requests to stream must originate, in
CIDR notation (e.g. 1.2.3.4/32)ContentStoreException
- on errorCopyright © 2009–2015 DuraSpace. All rights reserved.