Class AboutURLConnectionFactory

java.lang.Object
org.faceless.publisher.resource.AboutURLConnectionFactory
All Implemented Interfaces:
URLConnectionFactory

public class AboutURLConnectionFactory extends Object implements URLConnectionFactory
A subclass of URLConnection for the "about" scheme
  • Constructor Details

    • AboutURLConnectionFactory

      public AboutURLConnectionFactory()
  • Method Details

    • getURLConnection

      public URL2Connection getURLConnection(URL2 uri, ReportFactory reportFactory) throws IOException
      Description copied from interface: URLConnectionFactory
      Return a URLConnection for the specified URI, or null if not possible with this factory.
      Specified by:
      getURLConnection in interface URLConnectionFactory
      Parameters:
      uri - the URI
      reportFactory - the ReportFactory that owns this connection
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • supports

      public boolean supports(URL2 uri)
      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 interface URLConnectionFactory
      Parameters:
      uri - the URI
      Returns:
      whether the URL is supported by this factory
    • isRecognisedPart

      public static boolean isRecognisedPart(String part)
      Return true if the scheme-specific part is recognised by this handler
      Parameters:
      part - the part, eg "blank", "invalid", "index" or "identity" (the recognised list)