Interface PreviewUrlAgent.MediaPreviewUrlBuilder

All Superinterfaces:
PreviewUrlAgent.PreviewUrlBuilder<PreviewUrlAgent.MediaPreviewUrlBuilder>
Enclosing interface:
PreviewUrlAgent

public static interface PreviewUrlAgent.MediaPreviewUrlBuilder extends PreviewUrlAgent.PreviewUrlBuilder<PreviewUrlAgent.MediaPreviewUrlBuilder>
The preview url builder for Media nodes.
Since:
5.2.190105
  • Method Details

    • resolution

      @Contract("_ -> this") @NotNull @NotNull PreviewUrlAgent.MediaPreviewUrlBuilder resolution(@Nullable @Nullable Resolution resolution)
      Selects an alternative resolution instead of the default Resolution.ORIGINAL_RESOLUTION_NAME for rendering of type Media.PICTURE. For the Media.FILE type the resolution will be ignored.
      Parameters:
      resolution - The resolution to use.
      Returns:
      The builder itself.
      Since:
      5.2.190105
    • getUrl

      @NotNull @NotNull String getUrl(@NotNull @NotNull Media media)
      Returns the URL-String for the Media.
      Parameters:
      media - The media to return a url for
      Returns:
      The url as String.
      Since:
      5.2.190105