Class FileUrlBuilder

java.lang.Object
com.example.blogs.app.api.file.service.FileUrlBuilder

@Component public class FileUrlBuilder extends Object
Builds public URLs for file entities by delegating to the file link builder.
  • Constructor Details

    • FileUrlBuilder

      public FileUrlBuilder()
  • Method Details

    • build

      public String build(FileEntity file)
      Builds a public URL for accessing the file. Constructs the URL from the file's path, UUID, and extension.
      Parameters:
      file - the file entity containing metadata
      Returns:
      the public URL for accessing the file