public class PdfURLFactory extends FileSystemURLFactory
contextPath, daemon, defaultURL, defaultURLs, originalURL| Constructor and Description |
|---|
PdfURLFactory() |
| Modifier and Type | Method and Description |
|---|---|
URL |
createAttachmentRevisionURL(String filename,
String spaces,
String name,
String revision,
long recycleId,
String querystring,
String xwikidb,
XWikiContext context) |
URL |
createAttachmentRevisionURL(String filename,
String spaces,
String name,
String revision,
String querystring,
String xwikidb,
XWikiContext context) |
URL |
createAttachmentRevisionURL(String filename,
String spaces,
String name,
String revision,
String wiki,
XWikiContext context) |
URL |
createAttachmentURL(String filename,
String spaces,
String name,
String action,
String querystring,
String wiki,
XWikiContext context) |
void |
init(XWikiContext context) |
createResourceURL, createSkinURL, getURLaddFileName, addFileName, createExternalURL, createResourceURL, createSkinURL, createSkinURL, createTemplateURL, createURL, createURL, findAttachmentForDocRevision, findDeletedAttachmentForDocRevision, getContextPath, getDefaultURL, getRequestURL, getServerURL, getServerURL, isContextDoc, normalizeURL, normalizeURL, setDefaultURLcreateAttachmentRevisionURL, createAttachmentURL, createExternalURL, createSkinURL, createSkinURL, createSkinURL, createURL, createURL, createURLpublic void init(XWikiContext context)
init in interface XWikiURLFactoryinit in class XWikiServletURLFactorypublic URL createAttachmentURL(String filename, String spaces, String name, String action, String querystring, String wiki, XWikiContext context)
createAttachmentURL in interface XWikiURLFactorycreateAttachmentURL in class FileSystemURLFactoryspaces - a serialized space reference which can contain one or several spaces (e.g. "space1.space2"). If
a space name contains a dot (".") it must be passed escaped as in "space1\.with\.dot.space2"querystring - the URL-encoded Query String. It's important to realize that the implementation of this
method cannot encode it automatically since the Query String is passed as a String (and it's not possible
to differentiate between a '=' character that should be encoded and one that shouldn't. Imagine an input
of 'a=&b=c' which can be understood either as 'a' = '&b=c' or as 'a' = '' and 'b' = 'c'). Ideally
we would need an API signature that accepts a Map<String, String> for the Query String, for
examplepublic URL createAttachmentRevisionURL(String filename, String spaces, String name, String revision, String wiki, XWikiContext context)
createAttachmentRevisionURL in interface XWikiURLFactorycreateAttachmentRevisionURL in class FileSystemURLFactoryspaces - a serialized space reference which can contain one or several spaces (e.g. "space1.space2"). If
a space name contains a dot (".") it must be passed escaped as in "space1\.with\.dot.space2"wiki - the URL-encoded Query String. It's important to realize that the implementation of this
method cannot encode it automatically since the Query String is passed as a String (and it's not possible
to differentiate between a '=' character that should be encoded and one that shouldn't. Imagine an input
of 'a=&b=c' which can be understood either as 'a' = '&b=c' or as 'a' = '' and 'b' = 'c'). Ideally
we would need an API signature that accepts a Map<String, String> for the Query String, for
examplepublic URL createAttachmentRevisionURL(String filename, String spaces, String name, String revision, String querystring, String xwikidb, XWikiContext context)
createAttachmentRevisionURL in interface XWikiURLFactorycreateAttachmentRevisionURL in class XWikiServletURLFactoryspaces - a serialized space reference which can contain one or several spaces (e.g. "space1.space2"). If
a space name contains a dot (".") it must be passed escaped as in "space1\.with\.dot.space2"querystring - the URL-encoded Query String. It's important to realize that the implementation of this
method cannot encode it automatically since the Query String is passed as a String (and it's not possible
to differentiate between a '=' character that should be encoded and one that shouldn't. Imagine an input
of 'a=&b=c' which can be understood either as 'a' = '&b=c' or as 'a' = '' and 'b' = 'c'). Ideally
we would need an API signature that accepts a Map<String, String> for the Query String, for
examplepublic URL createAttachmentRevisionURL(String filename, String spaces, String name, String revision, long recycleId, String querystring, String xwikidb, XWikiContext context)
createAttachmentRevisionURL in class XWikiServletURLFactoryCopyright © 2004–2021 XWiki. All rights reserved.