@Component @Named(value="vfs") @Singleton public class VfsScriptService extends Object implements org.xwiki.script.service.ScriptService
Constructor and Description |
---|
VfsScriptService() |
Modifier and Type | Method and Description |
---|---|
String |
url(VfsResourceReference reference)
Generate a relative VFS URL to access a resource inside an archive.
|
String |
url(VfsResourceReference reference,
String contentType)
Generate a relative VFS URL to access a resource inside an archive.
|
public String url(VfsResourceReference reference)
reference
- the reference to a file inside a an archive.
For example attach:space.page@my.zip/path/to/file
.@Unstable public String url(VfsResourceReference reference, String contentType)
reference
- the reference to a file inside a an archive. For example
attach:space.page@my.zip/path/to/file
.contentType
- the Content-Type to return with the responseCopyright © 2004–2022 XWiki. All rights reserved.