@ApplicationScoped public class PathUrlFactory extends Object
Constructor and Description |
---|
PathUrlFactory() |
Modifier and Type | Method and Description |
---|---|
String |
getDownloadFileUrl(Path path)
Returns the download URL for a given file provided by a servlet method.
|
String |
getDownloadFileUrl(String path)
Returns the download URL for a given file provided by a servlet method.
|
String |
getUploadFileUrl(String path)
Returns the upload URL for a given file provided by a servlet method.
|
public String getDownloadFileUrl(Path path)
Returns the download URL for a given file provided by a servlet method.
path
- The path of the file.public String getDownloadFileUrl(String path)
Returns the download URL for a given file provided by a servlet method.
path
- The path of the file.Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.