Class FileUrlBuilder
java.lang.Object
com.example.blogs.app.api.file.service.FileUrlBuilder
Builds public URLs for file entities by delegating to the file link builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(FileEntity file) Builds a public URL for accessing the file.
-
Constructor Details
-
FileUrlBuilder
public FileUrlBuilder()
-
-
Method Details
-
build
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
-