Package org.faceless.publisher.resource
Class PKCS11ConnectionFactory
java.lang.Object
org.faceless.publisher.resource.PKCS11ConnectionFactory
- All Implemented Interfaces:
URLConnectionFactory
A URLConnectionFactory that handles the "pkcs11" scheme from
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getExpiry
(URL2 uri, URL2Connection con) Return the absolute expiry time of the resource reeturned by the specified URLConnection, or Long.MAX_VALUE for forever.getURLConnection
(URL2 uri, ReportFactory reportFactory) Return a URLConnection for the specified URI, or null if not possible with this factory.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, getURLConnectionProcessors, isTrusted, isUnchanged, setURLConnectionProcessors
-
Constructor Details
-
PKCS11ConnectionFactory
public PKCS11ConnectionFactory()
-
-
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
-
getExpiry
Description copied from interface:URLConnectionFactory
Return the absolute expiry time of the resource reeturned by the specified URLConnection, or Long.MAX_VALUE for forever. If this is not specified by the headers, the factory may still return a non-zero value to prevent content being cached forever. There is a default implementation which returns Long.MAX_VALUE;- Specified by:
getExpiry
in interfaceURLConnectionFactory
- Parameters:
uri
- the URIcon
- the URL connection
-