Package com.xpn.xwiki.pdf.impl
Class PdfURLFactory
- java.lang.Object
-
- com.xpn.xwiki.web.XWikiDefaultURLFactory
-
- com.xpn.xwiki.web.XWikiServletURLFactory
-
- com.xpn.xwiki.pdf.impl.FileSystemURLFactory
-
- com.xpn.xwiki.pdf.impl.PdfURLFactory
-
- All Implemented Interfaces:
XWikiURLFactory
@Deprecated(since="14.7") public class PdfURLFactory extends FileSystemURLFactory
Deprecated.Computes Image and Link URLs for attachments by using an absolute URLs but stores a Map in the XWiki Context to associate attachment URLs to Attachment Entity References so that when executing a PDF export the custom URI Resolver we use can stream image attachment content so that they are embedded in the PDF.- Version:
- $Id: 69ef97589d3d87a40e870e34a37340d01594e3b9 $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.web.XWikiServletURLFactory
contextPath, daemon, defaultURL, defaultURLs, originalURL
-
-
Constructor Summary
Constructors Constructor Description PdfURLFactory()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description URL
createAttachmentRevisionURL(String filename, String spaces, String name, String revision, long recycleId, String querystring, String xwikidb, XWikiContext context)
Deprecated.URL
createAttachmentRevisionURL(String filename, String spaces, String name, String revision, String wiki, XWikiContext context)
Deprecated.URL
createAttachmentRevisionURL(String filename, String spaces, String name, String revision, String querystring, String xwikidb, XWikiContext context)
Deprecated.URL
createAttachmentURL(String filename, String spaces, String name, String action, String querystring, String wiki, XWikiContext context)
Deprecated.void
init(XWikiContext context)
Deprecated.-
Methods inherited from class com.xpn.xwiki.pdf.impl.FileSystemURLFactory
createResourceURL, createSkinURL, getURL
-
Methods inherited from class com.xpn.xwiki.web.XWikiServletURLFactory
addFileName, addFileName, createExternalURL, createResourceURL, createSkinURL, createSkinURL, createTemplateURL, createURL, createURL, findAttachmentForDocRevision, findDeletedAttachmentForDocRevision, getContextPath, getDefaultURL, getRequestURL, getServerURL, getServerURL, isContextDoc, normalizeURL, normalizeURL, setDefaultURL
-
Methods inherited from class com.xpn.xwiki.web.XWikiDefaultURLFactory
createAttachmentRevisionURL, createAttachmentURL, createExternalURL, createSkinURL, createSkinURL, createSkinURL, createURL, createURL, createURL
-
-
-
-
Method Detail
-
init
public void init(XWikiContext context)
Deprecated.- Specified by:
init
in interfaceXWikiURLFactory
- Overrides:
init
in classXWikiServletURLFactory
-
createAttachmentURL
public URL createAttachmentURL(String filename, String spaces, String name, String action, String querystring, String wiki, XWikiContext context)
Deprecated.- Specified by:
createAttachmentURL
in interfaceXWikiURLFactory
- Overrides:
createAttachmentURL
in classFileSystemURLFactory
spaces
- 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 aMap<String, String>
for the Query String, for example
-
createAttachmentRevisionURL
public URL createAttachmentRevisionURL(String filename, String spaces, String name, String revision, String wiki, XWikiContext context)
Deprecated.- Specified by:
createAttachmentRevisionURL
in interfaceXWikiURLFactory
- Overrides:
createAttachmentRevisionURL
in classFileSystemURLFactory
spaces
- 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 aMap<String, String>
for the Query String, for example
-
createAttachmentRevisionURL
public URL createAttachmentRevisionURL(String filename, String spaces, String name, String revision, String querystring, String xwikidb, XWikiContext context)
Deprecated.- Specified by:
createAttachmentRevisionURL
in interfaceXWikiURLFactory
- Overrides:
createAttachmentRevisionURL
in classXWikiServletURLFactory
spaces
- 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 aMap<String, String>
for the Query String, for example
-
createAttachmentRevisionURL
public URL createAttachmentRevisionURL(String filename, String spaces, String name, String revision, long recycleId, String querystring, String xwikidb, XWikiContext context)
Deprecated.- Overrides:
createAttachmentRevisionURL
in classXWikiServletURLFactory
-
-