Class RelativeURLRepository

All Implemented Interfaces:
Repository

public class RelativeURLRepository extends URLRepository
  • Constructor Details

  • Method Details

    • getResource

      public Resource getResource(String source) throws IOException
      Description copied from interface: Repository
      Return the resource associated with a specified identifier. If the resource does not exist, it should return a Resource with exists() returning false. An IOException should only be thrown when a real IO problem occurs, like the impossibility to connect to a server.
      Specified by:
      getResource in interface Repository
      Overrides:
      getResource in class URLRepository
      Parameters:
      source - A string identifying the resource.
      Returns:
      The resource associated with the resource identifier.
      Throws:
      IOException - On error while trying to get resource.