Uses of Class
org.faceless.publisher.type.URL2
Packages that use URL2
Package
Description
Provides the main classes for BFO Publisher
Contains extensions to BFO Publisher which are used to add functionality
Provides the base classes for output from BFO Publisher, extended by type-specific subpackages
Provides the classes used to write output to PDF
Provides the classes used to write output to SVG
Provides the classes and interfaces used for loading external resources
Contains utility classes and interfaces which are used across BFO Publisher
-
Uses of URL2 in org.faceless.publisher
Methods in org.faceless.publisher that return URL2Modifier and TypeMethodDescriptionReportFactory.getBaseURL()
Return the Base URL as set byReportFactory.setBaseURL(org.faceless.publisher.type.URL2)
Document.getURL()
Return the base URL of this document, which must be set in order to resolve relative URLsReport.getURL()
Return the URL as set byReport.setURL(org.faceless.publisher.type.URL2)
Methods in org.faceless.publisher that return types with arguments of type URL2Modifier and TypeMethodDescriptionReportFactory.getResourceCache()
Return the cache used by this ReportFactory to cache objects like fonts, images etc. across multiple Reports.Report.getUserAgentStylesheets()
Return the list of "user-agent" Stylesheets to add to this Report.ReportFactory.getUserAgentStylesheets()
Return the modifiable List of URLs to "user-agent" styleshets, which is used to initialise the same value on anyReport
objects created by this factory.Report.getUserStylesheets()
Return the list of "user" Stylesheets to add to this Report.ReportFactory.getUserStylesheets()
Return the modifiable List of URLs to "user" styleshets, which is used to initialise the same value on anyReport
objects created by this factory.Methods in org.faceless.publisher with parameters of type URL2Modifier and TypeMethodDescriptionorg.faceless.publisher.type.AbstractTreeNode
Document.getElement
(URL2 uri) Retrieve an element from this document.Report.getResource
(URL2 uri) Retrieve a Resource as it would be seen by this Report.<E> E
ReportFactory.getResource
(URL2 uri, MediaType mediaType, Class<E> resourceClass) Load a resource, exactly as it would be loaded by a Report create from this factory.void
Document.putElement
(URL2 uri, org.faceless.publisher.type.AbstractTreeNode node) Store an element.void
void
ReportFactory.setBaseURL
(URL2 uri) Set the Base URL to resolve any relative URLs passed directly into theReport
class - specifically this is theReport.load(java.lang.Object)
method anduser
anduser-agent
stylesheet methods.void
Document.setURL
(URL2 uri) Set the base URL of the document.void
Set the URL which this Report will be loaded from inReport.load(java.lang.Object)
. -
Uses of URL2 in org.faceless.publisher.ext
Methods in org.faceless.publisher.ext that return URL2Modifier and TypeMethodDescriptionMailServerExtension.createStore
(Json json) Given a Json configuration, connect to the IMAP server it defines and return a URL which can be used to access that Store.SpiderExtension.State.getBaseURL()
ASCIIDocResourceLoader.getCSS()
Return the URL of the CSS stylesheet applied to any ASCIIDoc documents processed with this ResourceLoader.EpubResourceLoader.getCSS()
Return the URL of the CSS stylesheet applied to any EPUB documents processed with this ResourceLoader.MarkdownResourceLoader.getCSS()
Return the URL of the CSS stylesheet applied to any Markdown documents processed with this ResourceLoader.EpubResourceLoader.getItemXSLT()
Return the URL of the XSLT stylesheet applied to each item in EPUB documents processed with this ResourceLoader.MailExtension.ParsedMimeMessage.getMainPart()
Return the URL of the "main" part of the message.SpiderExtension.State.getURL()
EpubResourceLoader.getXSLT()
Return the URL of the XSLT stylesheet applied to any EPUB documents processed with this ResourceLoader.Methods in org.faceless.publisher.ext that return types with arguments of type URL2Modifier and TypeMethodDescriptionMailExtension.ParsedMimeMessage.getParts()
Return a collection of MIME Parts used in this message.Methods in org.faceless.publisher.ext with parameters of type URL2Modifier and TypeMethodDescriptionvoid
Store
Return a Store matching the specified URL.boolean
Return true if a target URL is considered "local" for the base URL, and therefore attachable.static MailExtension.Configuration
MailExtension.newTemplateConfiguration
(String name, String type, boolean xml, URL2 url) Create a new Configuration that will apply a template (eg ZTemplate or FreeMarker) to the JSON representation of the messagevoid
MailServerExtension.removeStore
(URL2 uri) Remove a Store matching the specified URL.void
ASCIIDocResourceLoader.setCSS
(URL2 uri) Set the URL of the CSS stylesheet applied to any ASCIIDoc documents processed with this ResourceLoadervoid
Set the URL of the CSS stylesheet applied to any EPUB documents processed with this ResourceLoadervoid
MarkdownResourceLoader.setCSS
(URL2 uri) Set the URL of the CSS stylesheet applied to any Markdown documents processed with this ResourceLoadervoid
EpubResourceLoader.setItemXSLT
(URL2 uri) Set the URL of the XSLT stylesheet applied to each item included in any EPUB documents processed with this ResourceLoader.void
ASCIIDocResourceLoader.setTemplatePostprocessor
(URL2 uri, ReportFactory factory) Set the URL of the XML template to apply to the generated output.void
Set the URL of the XSLT stylesheet applied to any EPUB documents processed with this ResourceLoader -
Uses of URL2 in org.faceless.publisher.output
Methods in org.faceless.publisher.output that return URL2Methods in org.faceless.publisher.output with parameters of type URL2Modifier and TypeMethodDescriptionvoid
DiscardReportOutput.addBookmark
(CharSequence label, URL2 uri, int level, boolean open) void
ReportOutputFilter.addBookmark
(CharSequence label, URL2 uri, int level, boolean open) void
BitmapCanvas.markElement
(URL2 uri) void
ReportCanvas.markElement
(URL2 uri) Mark the next fill, text or image as belonging to the specified URI.void
ReportCanvasFilter.markElement
(URL2 uri) Constructors in org.faceless.publisher.output with parameters of type URL2 -
Uses of URL2 in org.faceless.publisher.output.pdf
Methods in org.faceless.publisher.output.pdf with parameters of type URL2 -
Uses of URL2 in org.faceless.publisher.output.svg
Methods in org.faceless.publisher.output.svg with parameters of type URL2 -
Uses of URL2 in org.faceless.publisher.resource
Fields in org.faceless.publisher.resource declared as URL2Methods in org.faceless.publisher.resource that return URL2Modifier and TypeMethodDescriptionstatic URL2
DataURLConnectionFactory.create
(MediaType mediaType, InputStream data, Origin origin) Create a data URIstatic URL2
Create a data URIstatic URL2
ResourceDescriptor.getLinkParametersAsStylesheet
(Map<String, List<? extends Term>> params) Resource.getRedirectURL()
Return the final URL that was actually used to load the resource, which often be the same asResource.getURL()
.Resource.getURL()
Return the URL for the ResourceResourceDescriptor.getURL()
Return the URLMethods in org.faceless.publisher.resource that return types with arguments of type URL2Modifier and TypeMethodDescriptionMemoryURLConnectionFactory.getMap()
Return the Map of URLs to {link AbstractBlob} values.Methods in org.faceless.publisher.resource with parameters of type URL2Modifier and TypeMethodDescriptionvoid
Http1URLConnectionFactory.close
(URL2 uri, URL2Connection con) default void
URLConnectionFactory.close
(URL2 uri, URL2Connection con) Close the specified URLConnection and free any resources allocated by this factory.static String
KeyStoreResourceLoader.createSelfSignedCertificate
(KeyStore keystore, URL2 uri) Create a self-signed entry in the KeyStore based on the supplied "magic" URL.long
FileURLConnectionFactory.getExpiry
(URL2 uri, URL2Connection con) long
FontDirURLConnectionFactory.getExpiry
(URL2 uri, URL2Connection con) long
Http1URLConnectionFactory.getExpiry
(URL2 uri, URL2Connection con) long
PKCS11ConnectionFactory.getExpiry
(URL2 uri, URL2Connection con) default long
URLConnectionFactory.getExpiry
(URL2 uri, URL2Connection con) Return the absolute expiry time of the resource reeturned by the specified URLConnection, or Long.MAX_VALUE for forever.<E> E
Return the Resource of the specified type from the specified URL.ResourceManager.getResource
(URL2 uri, ResourceDescriptor descriptor) Return the Resource that matches the specified types from the specified URL.<E> E
AboutURLConnectionFactory.getURLConnection
(URL2 uri, ReportFactory reportFactory) ClasspathConnectionFactory.getURLConnection
(URL2 uri, ReportFactory reportFactory) DataURLConnectionFactory.getURLConnection
(URL2 uri, ReportFactory reportFactory) FileURLConnectionFactory.getURLConnection
(URL2 uri, ReportFactory reportFactory) FileWithHeadersURLConnectionFactory.getURLConnection
(URL2 uri, ReportFactory reportFactory) FontDirURLConnectionFactory.getURLConnection
(URL2 uri, ReportFactory reportFactory) Http1URLConnectionFactory.getURLConnection
(URL2 uri, ReportFactory reportFactory) LocalFontURLConnectionFactory.getURLConnection
(URL2 uri, ReportFactory reportFactory) MemoryURLConnectionFactory.getURLConnection
(URL2 uri, ReportFactory reportFactory) PKCS11ConnectionFactory.getURLConnection
(URL2 uri, ReportFactory reportFactory) URLConnectionFactory.getURLConnection
(URL2 uri, ReportFactory reportFactory) Return a URLConnection for the specified URI, or null if not possible with this factory.ZipURLConnectionFactory.getURLConnection
(URL2 uri, ReportFactory reportFactory) Return a URLConnection for the specified URI, or null if not possible with this factory.boolean
boolean
boolean
default boolean
Return true if the supplied URL (which will be loadable by this Factory) should be considered trusted.boolean
FileURLConnectionFactory.isUnchanged
(URL2 uri, URL2Connection con) boolean
FontDirURLConnectionFactory.isUnchanged
(URL2 uri, URL2Connection con) boolean
Http1URLConnectionFactory.isUnchanged
(URL2 uri, URL2Connection con) default boolean
URLConnectionFactory.isUnchanged
(URL2 uri, URL2Connection con) Return true if a previous resource loaded by this factory should be considered valid, based on the supplied response for a subsequent request for the same resource.NodeResourceLoader.load
(ResourceDescriptor d, URL2 uri, org.faceless.publisher.type.AbstractTreeNode node, org.faceless.publisher.Document document) Attempt to load a Resource from the specified AbstractTreeNode.SVGInternalResourceLoader.load
(ResourceDescriptor d, URL2 uri, org.faceless.publisher.type.AbstractTreeNode node, org.faceless.publisher.Document document) void
ResourceManager.putSpecialResource
(URL2 uri, ResourceFlavor flavor) Store an XML resource that may be accessed later against the specified ID.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Return true if this URLConnectionFactory supports the specified URL.boolean
boolean
Return true if this factory can load the specified URI schema (eg http, ftp, jar, jdbc)boolean
Return true if this factory can load the specified URI schema (eg http, ftp, jar, jdbc)Constructors in org.faceless.publisher.resource with parameters of type URL2ModifierConstructorDescriptionInputSourceBuilder
(URL2 uri) Resource
(URL2 uri, ReportFactory reportFactory) Create a new Resource associated with the specified URLZipURLConnectionFactory
(BackedZipFile zip, URL2 base, ZipURLConnectionFactory.Flavor flavor) Create a URLConnectionFactory that will read entries from a ZIP file.Constructor parameters in org.faceless.publisher.resource with type arguments of type URL2ModifierConstructorDescriptionMemoryURLConnectionFactory
(Map<? extends URL2, ? extends AbstractBlob> map) Create a new MemoryURLConnectionFactory. -
Uses of URL2 in org.faceless.publisher.type
Fields in org.faceless.publisher.type declared as URL2Modifier and TypeFieldDescriptionstatic final URL2
Metadata.CREATOR
static final URL2
Metadata.DESCRIPTION
static final URL2
Metadata.LDJSON
static final URL2
Metadata.RDFXML
static final URL2
Metadata.RNGSCHEMA
static final URL2
Metadata.SNIFF
static final URL2
Metadata.TITLE
Methods in org.faceless.publisher.type that return URL2Modifier and TypeMethodDescriptionstatic URL2
Util.createDataURL
(Blob blob) Create a "data:" URL from the specifiedBlob
static URL2
Util.createDataURL
(MediaType mediaType, InputStream in) Create a "data:" URL which will be Base-64 encoded.static URL2
Util.createDataURL
(MediaType mediaType, String data) Create a "data:" URLBfoLayerType.getAction
(org.faceless.publisher.type.CSSStyle style, org.faceless.publisher.type.Action action) Return the "onNNN" property for the specified action, or null if undefined If specified as relative, it's relativeFormSignatureResource.getBase()
CSSStyle.getBFOBookmarkTarget()
Return null if it's a link to the current elementFilterCSSStyle.getBFOBookmarkTarget()
CSSStyle.getBorderImageSource()
Returns the value of theborder-image-source
property.FilterCSSStyle.getBorderImageSource()
FilterPropertyDeclarationEvaluationContext.getDocumentURL()
PropertyDeclarationEvaluationContext.getDocumentURL()
default URL2
Background.getImage()
Returns the image associated with this layer.Mask.getImage()
Returns the image associated with this layer.CSSStyle.getListStyleImage()
Returns the value of thelist-style-image
property.FilterCSSStyle.getListStyleImage()
CSSStyle.getMarkerEnd()
FilterCSSStyle.getMarkerEnd()
CSSStyle.getMarkerMid()
FilterCSSStyle.getMarkerMid()
CSSStyle.getMarkerStart()
FilterCSSStyle.getMarkerStart()
CSSStyle.getMaskBorderSource()
Returns the value of themask-border-source
property.FilterCSSStyle.getMaskBorderSource()
ReportResource.getStylesheet()
default URL2
AbstractBlob.getURL()
Return the URL2 associated with this Blob, ornull
if unspecified.AbstractNode.getURL
(String uri) Given a string, resolve against any base URL adjustments between here and the document root.AbstractStyledNode.getURL
(String href) Blob.getURL()
Return the URL as set in the constructor, which may be nullContentHandlerWrapper.getURL
(String uri) DocumentSink.getURL
(String uri) Resolve a URL against the base URL for the currently open ElementFontResourceDescriptor.getURL()
LinkResource.getURL()
Get the URL of the linkOrigin.getURL()
Return the URL2 of the origin.Position.getURL()
ReportResource.getURL()
URL2Connection.getURL()
Get the URL.URL2ConnectionBase.getURL()
URL2ConnectionWrapper.getURL()
URLClipPath.getURL()
URL2.normalize()
Return a new URL which is the normalized equivalent of this URLstatic URL2
Create a URL from the specified String, or return null if it is so invalid it's beyond salvageURL2.relativize
(URL2 uri, boolean safe) Relativize the supplied URL aginst the current one.Constructs a new URL by parsing the given string and then resolving it against this URL.This method will be supplied with the URL about to be loaded, and the base URL of the Document loading it.URL2.setFragment
(String fragment) Set the fragment on this URLURL2.setFragmentParameters
(Map<String, List<String>> params) Set the Fragment to be the supplied set of fragment parametersSet the query on this URLURL2.setUserInfo
(String userInfo) Set the userInfo on this URLMetadataValue.uriValue()
Methods in org.faceless.publisher.type that return types with arguments of type URL2Modifier and TypeMethodDescriptionCSSStyle.getBFOMetadataProperty()
Return the "-bfo-metadata-property" property, which is either none, a list or URLs, or a string which will be split on spaces into a list of URLsFilterCSSStyle.getBFOMetadataProperty()
CSSStyle.getBFOMetadataSubject()
Return the "-bfo-metadata-subject" property, which is either none, a list of URLs or a string which will be split on spaces into a list of URLsFilterCSSStyle.getBFOMetadataSubject()
LinkResource.getStylesheets()
Return the list of any XSLT stylesheets that should be applied to the outputMetadata.getSubjects()
Methods in org.faceless.publisher.type with parameters of type URL2Modifier and TypeMethodDescriptionvoid
CounterFormatOutput.add
(URL2 uri) void
ContentHandlerWrapper.addMetadata
(URL2 subject, URL2 property, Object value, Language lang, Object source) void
Add a Metadata value to the nearest scoped ancestor, or (if called before the root element), add to the root element.void
org.faceless.publisher.type.Content
Content.addURI
(URL2 s) default URL2
<E> E
FilterPropertyDeclarationEvaluationContext.getResource
(URL2 uri, MediaType mediaType, Class<E> resourceClass) <E> E
PropertyDeclarationEvaluationContext.getResource
(URL2 uri, MediaType mediaType, Class<E> resourceClass) Return the specified resource.boolean
URL2.isSameDocument
(URL2 uri) Return true if this URL is, or is a fragment of the base URL.URL2.relativize
(URL2 uri, boolean safe) Relativize the supplied URL aginst the current one.This method will be supplied with the URL about to be loaded, and the base URL of the Document loading it.void
void
ReportResource.setURL
(URL2 url) Override the base URL set in the constructor.void
Set the URL, overriding the parameter passed into the constructorstatic MediaType
Sniffer.sniff
(InputStream in, URL2 uri) Given a mark-capable InputStream, attempt to guess the MediaType.Method parameters in org.faceless.publisher.type with type arguments of type URL2Modifier and TypeMethodDescriptionvoid
Set the list of XSLT stylesheets that should be applied to this linkvoid
Constructors in org.faceless.publisher.type with parameters of type URL2ModifierConstructorDescriptionBackground
(org.faceless.publisher.type.BackgroundAttachmentProp attach, org.faceless.publisher.type.BoxProp clip, Paint color, URL2 image, org.faceless.publisher.type.BoxProp origin, org.faceless.publisher.type.BackgroundPosition position, org.faceless.publisher.type.RepeatStyle repeat, org.faceless.publisher.type.BackgroundSize size, org.faceless.publisher.type.BlendModeProp blendMode) Create a new Background with an image.Blob
(URL2 uri, MediaType type, InputStream in, long lastModified) Blob
(URL2 uri, MediaType type, ByteBuffer buf, long lastModified) ImageThresholdClipPath
(org.faceless.publisher.type.CSSStyle style, URL2 uri) LinkResource
(org.faceless.publisher.Document document, org.faceless.publisher.resource.ResourceManager resourceManager, URL2 uri, String rel) Create a linkLocators
(URL2 uri) Mask
(org.faceless.publisher.type.BoxProp clip, org.faceless.publisher.type.MaskCompositeProp composite, URL2 image, org.faceless.publisher.type.MaskModeProp mode, org.faceless.publisher.type.BoxProp origin, org.faceless.publisher.type.BackgroundPosition position, org.faceless.publisher.type.RepeatStyle repeat, org.faceless.publisher.type.BackgroundSize size) Create a new Mask.MetadataValue
(URL2 url) Origin
(URL2 uri, String tostring, Origin.CrossOrigin crossOrigin, ReferrerPolicy referrerPolicy) ReportResource
(ReportFactory factory, URL2 url, MediaType mediaType, Blob source) SSLURLConnectionProcessor
(URL2 trust, URL2 identity, char[] password, ReportFactory reportFactory) Create a new SSLURLConnectionProcessorCreate a new URL2 that is a clone of the supplied valueURL2ConnectionBase
(int code, URL2 uri, InputStream in) Create a URL2Connection with no headers and which will return the specified InputStream whenURL2ConnectionBase.getInputStream()
is calledURL2ConnectionBase
(URL2 uri, URLConnection con) Create a URL2Connection which will wrap the specifiedURLConnection
URLClipPath
(org.faceless.publisher.Document document, URL2 uri)