Package org.duracloud.client.task
Interface S3TaskClient
- All Known Implementing Classes:
S3TaskClientImpl
public interface S3TaskClient
Provides a client interface for S3StorageProvider's set of tasks.
- Author:
- Bill Branan Date: 3/6/15
-
Method Summary
Modifier and TypeMethodDescriptiondeleteHlsStreaming(String spaceId) Deletes a streaming distribution for a space.disableHlsStreaming(String spaceId) Disables HLS streaming on a space.enableHlsStreaming(String spaceId, boolean secure) Enables HLS streaming on a space.Returns a URL representing an HLS streamable resource.getSignedCookiesUrl(String spaceId, String ipAddress, int minutesToExpire, String redirectUrl) Generates signed cookies and provides a URL at which those cookies can be set on the user's browser
-
Method Details
-
enableHlsStreaming
EnableStreamingTaskResult enableHlsStreaming(String spaceId, boolean secure) throws ContentStoreException Enables HLS streaming on a space. Streaming can be either open or secure.- Parameters:
spaceId- the ID of the space where streaming will be enabledsecure- true if signed URLs should be required to stream space content- Returns:
- resulting status and streaming host value
- Throws:
ContentStoreException- on error
-
disableHlsStreaming
Disables HLS streaming on a space.- Parameters:
spaceId- the ID of the space where streaming will be disabled- Returns:
- resulting status
- Throws:
ContentStoreException- on erro
-
deleteHlsStreaming
Deletes a streaming distribution for a space. This ensures that content that was available for streaming will no longer be available.- Parameters:
spaceId- the ID of the space where streaming will be disabled- Returns:
- resulting status
- Throws:
ContentStoreException- on error
-
getHlsUrl
Returns a URL representing an HLS streamable resource.- Parameters:
spaceId- the space ID that contains the content to be streamedcontentId- the content ID to be converted to a streaming URL- Returns:
- Throws:
ContentStoreException
-
getSignedCookiesUrl
GetSignedCookiesUrlTaskResult getSignedCookiesUrl(String spaceId, String ipAddress, int minutesToExpire, String redirectUrl) throws ContentStoreException Generates signed cookies and provides a URL at which those cookies can be set on the user's browser- Parameters:
spaceId-ipAddress-minutesToExpire-- Returns:
- Throws:
ContentStoreException
-