Package org.faceless.publisher.resource
Class ClasspathConnectionFactory
java.lang.Object
org.faceless.publisher.resource.ClasspathConnectionFactory
- All Implemented Interfaces:
URLConnectionFactory
A subclass of URLConnection for the custom "classpath" scheme, e.g.
- classpath:data/default.css
- classpath:/full/path;text/html;charset=utf-8
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetURLConnection
(URL2 uri, ReportFactory reportFactory) Return a URLConnection for the specified URI, or null if not possible with this factory.boolean
Return true if the supplied URL (which will be loadable by this Factory) should be considered trusted.boolean
Return true if this factory can load the specified URI schema (eg http, ftp, jar, jdbc)toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.faceless.publisher.resource.URLConnectionFactory
close, getExpiry, getURLConnectionProcessors, isUnchanged, setURLConnectionProcessors
-
Constructor Details
-
ClasspathConnectionFactory
public ClasspathConnectionFactory()
-
-
Method Details
-
getURLConnection
Description copied from interface:URLConnectionFactory
Return a URLConnection for the specified URI, or null if not possible with this factory.- Specified by:
getURLConnection
in interfaceURLConnectionFactory
- Parameters:
uri
- the URIreportFactory
- the ReportFactory that owns this connection- Throws:
IOException
-
toString
-
supports
Description copied from interface:URLConnectionFactory
Return true if this factory can load the specified URI schema (eg http, ftp, jar, jdbc)- Specified by:
supports
in interfaceURLConnectionFactory
- Parameters:
uri
- the URI
-
isTrusted
Description copied from interface:URLConnectionFactory
Return true if the supplied URL (which will be loadable by this Factory) should be considered trusted. The default implementation returns false.- Specified by:
isTrusted
in interfaceURLConnectionFactory
- See Also:
-