Package org.duracloud.client.task
Class S3TaskClientImpl
- java.lang.Object
-
- org.duracloud.client.task.S3TaskClientImpl
-
- All Implemented Interfaces:
S3TaskClient
public class S3TaskClientImpl extends Object implements S3TaskClient
Implements the S3 task client interface by making task calls through a ContentStore.- Author:
- Bill Branan Date: 3/6/15
-
-
Constructor Summary
Constructors Constructor Description S3TaskClientImpl(ContentStore contentStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteStreamingTaskResultdeleteHlsStreaming(String spaceId)Deletes a streaming distribution for a space.DisableStreamingTaskResultdisableHlsStreaming(String spaceId)Disables HLS streaming on a space.EnableStreamingTaskResultenableHlsStreaming(String spaceId, boolean secure)Enables HLS streaming on a space.GetUrlTaskResultgetHlsUrl(String spaceId, String contentId)Returns a URL representing an HLS streamable resource.GetSignedCookiesUrlTaskResultgetSignedCookiesUrl(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 Detail
-
S3TaskClientImpl
public S3TaskClientImpl(ContentStore contentStore)
-
-
Method Detail
-
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
public DisableStreamingTaskResult disableHlsStreaming(String spaceId) throws ContentStoreException
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
public DeleteStreamingTaskResult deleteHlsStreaming(String spaceId) throws ContentStoreException
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
public GetUrlTaskResult getHlsUrl(String spaceId, String contentId) throws ContentStoreException
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
-
-