Package com.priint.pubserver.util
Class MediaObjectUrlUtils
java.lang.Object
com.priint.pubserver.util.MediaObjectUrlUtils
Utilities for exposing media objects through Publishing Server HTTP endpoints.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetObjectStorageUrl(String sessionId, MediaAsset mediaAsset, MediaObject mediaObject) Creates the relative HTTP URL and derives the entity model from the media asset.static StringgetObjectStorageUrl(String sessionId, String entityModelIdentifier, MediaAsset mediaAsset, MediaObject mediaObject) Creates the relative HTTP URL used to read a media object stored in ObjectStorage.
-
Field Details
-
MEDIA_OBJECT_IDENTIFIER_QUERY_PARAMETER
- See Also:
-
-
Method Details
-
getObjectStorageUrl
public static String getObjectStorageUrl(String sessionId, String entityModelIdentifier, MediaAsset mediaAsset, MediaObject mediaObject) Creates the relative HTTP URL used to read a media object stored in ObjectStorage.- Parameters:
sessionId- current Publishing Server sessionentityModelIdentifier- identifier of the entity modelmediaAsset- parent media assetmediaObject- media object stored in ObjectStorage- Returns:
- URL relative to the Publishing Server host
-
getObjectStorageUrl
public static String getObjectStorageUrl(String sessionId, MediaAsset mediaAsset, MediaObject mediaObject) Creates the relative HTTP URL and derives the entity model from the media asset.
-