Package org.duracloud.client.task
Class S3TaskClientImpl
java.lang.Object
org.duracloud.client.task.S3TaskClientImpl
- All Implemented Interfaces:
S3TaskClient
Implements the S3 task client interface by making task calls through
a ContentStore.
- Author:
- Bill Branan Date: 3/6/15
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
S3TaskClientImpl
-
-
Method Details
-
enableHlsStreaming
public EnableStreamingTaskResult enableHlsStreaming(String spaceId, boolean secure) throws ContentStoreException Enables HLS streaming on a space. Streaming can be either open or secure.- Specified by:
enableHlsStreamingin interfaceS3TaskClient- 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.- Specified by:
disableHlsStreamingin interfaceS3TaskClient- 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.- Specified by:
deleteHlsStreamingin interfaceS3TaskClient- 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.- Specified by:
getHlsUrlin interfaceS3TaskClient- 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
public 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- Specified by:
getSignedCookiesUrlin interfaceS3TaskClient- Returns:
- Throws:
ContentStoreException
-