Class MediaObjectUrlUtils

java.lang.Object
com.priint.pubserver.util.MediaObjectUrlUtils

public final class MediaObjectUrlUtils extends Object
Utilities for exposing media objects through Publishing Server HTTP endpoints.
  • Field Details

    • MEDIA_OBJECT_IDENTIFIER_QUERY_PARAMETER

      public static final String 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 session
      entityModelIdentifier - identifier of the entity model
      mediaAsset - parent media asset
      mediaObject - 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.