UriResolvers

object UriResolvers

URI resolvers, converting an URI to a SAX InputSource.

URI resolvers, converting an URI to a SAX InputSource.

Note that the only fundamental methods in this singleton object are fromPartialUriResolversWithoutFallback and fromPartialUriResolversWithFallback.

Authors

Chris de Vreeze

class Object
trait Matchable
class Any

Type members

Classlikes

final class WithResolutionFallback(val uriResolver: UriResolver) extends AnyVal

Extension of UriResolver with resolution fallback capability.

Extension of UriResolver with resolution fallback capability.

Types

type UriResolver = URI => InputSource

Value members

Concrete methods

def forZipFile(zipFile: ZipFile, uriConverter: URI => URI): UriResolver

Returns the equivalent of PartialUriResolvers.forZipFile(zipFile, liftedUriConverter).andThen(_.get), .

Returns the equivalent of PartialUriResolvers.forZipFile(zipFile, liftedUriConverter).andThen(_.get), .

It can also be defined as:

fromPartialUriResolverWithoutFallback(
 PartialUriResolvers.forZipFile(zipFile, liftedUriConverter))
def forZipFileContainingLocalMirrorUsingScheme(zipFile: ZipFile, parentPathOption: Option[URI]): UriResolver

Returns an URI resolver that expects all files to be found in a local mirror in a ZIP file, with the protocol (HTTP or HTTPS, in lowercase) of the URI mirrored under the given root directory, and the host name in a sub-directory under that.

Returns an URI resolver that expects all files to be found in a local mirror in a ZIP file, with the protocol (HTTP or HTTPS, in lowercase) of the URI mirrored under the given root directory, and the host name in a sub-directory under that.

def forZipFileContainingLocalMirrorWithoutScheme(zipFile: ZipFile, parentPathOption: Option[URI]): UriResolver

Returns an URI resolver that expects all files to be found in a local mirror in a ZIP file, with the host name of the URI mirrored under the given optional parent directory. The protocol (HTTP or HTTPS) is not represented in the local mirror.

Returns an URI resolver that expects all files to be found in a local mirror in a ZIP file, with the host name of the URI mirrored under the given optional parent directory. The protocol (HTTP or HTTPS) is not represented in the local mirror.

Returns forZipFile(zipFile, UriConverters.fromCatalogFallingBackToIdentity(catalog)).

Returns forZipFile(zipFile, UriConverters.fromCatalogFallingBackToIdentity(catalog)).

Returns forZipFile(zipFile, UriConverters.fromCatalogWithoutFallback(catalog)).

Returns forZipFile(zipFile, UriConverters.fromCatalogWithoutFallback(catalog)).

Returns fromUriConverter(UriConverters.fromCatalogFallingBackToIdentity(catalog)).

Returns fromUriConverter(UriConverters.fromCatalogFallingBackToIdentity(catalog)).

Returns fromUriConverter(UriConverters.fromCatalogWithoutFallback(catalog)).

Returns fromUriConverter(UriConverters.fromCatalogWithoutFallback(catalog)).

Returns an URI resolver that expects all files to be found in a local mirror, with the protocol (HTTP or HTTPS, in lowercase) of the URI mirrored under the given root directory, and the host name in a sub-directory under that.

Returns an URI resolver that expects all files to be found in a local mirror, with the protocol (HTTP or HTTPS, in lowercase) of the URI mirrored under the given root directory, and the host name in a sub-directory under that.

Returns an URI resolver that expects all files to be found in a local mirror, with the host name of the URI mirrored under the given root directory. The protocol (HTTP or HTTPS) is not represented in the local mirror.

Returns an URI resolver that expects all files to be found in a local mirror, with the host name of the URI mirrored under the given root directory. The protocol (HTTP or HTTPS) is not represented in the local mirror.

Returns fromPartialUriResolversWithFallback(immutable.IndexedSeq(partialUriResolver)).

Returns fromPartialUriResolversWithFallback(immutable.IndexedSeq(partialUriResolver)).

Returns fromPartialUriResolversWithoutFallback(immutable.IndexedSeq(partialUriResolver)).

Returns fromPartialUriResolversWithoutFallback(immutable.IndexedSeq(partialUriResolver)).

Returns the URI resolver that for each input URI tries all given partial URI resolvers until a matching one is found, returning the InputSource resolution result. If for an URI no matching partial URI resolver is found, the URI itself is "opened" as InputSource.

Returns the URI resolver that for each input URI tries all given partial URI resolvers until a matching one is found, returning the InputSource resolution result. If for an URI no matching partial URI resolver is found, the URI itself is "opened" as InputSource.

Returns the URI resolver that for each input URI tries all given partial URI resolvers until a matching one is found, returning the InputSource resolution result. If for an URI no matching partial URI resolver is found, an exception is thrown.

Returns the URI resolver that for each input URI tries all given partial URI resolvers until a matching one is found, returning the InputSource resolution result. If for an URI no matching partial URI resolver is found, an exception is thrown.

def fromUriConverter(uriConverter: URI => URI): UriResolver

Returns the equivalent of PartialUriResolvers.fromPartialUriConverter(liftedUriConverter).andThen(_.get).

Returns the equivalent of PartialUriResolvers.fromPartialUriConverter(liftedUriConverter).andThen(_.get).

It can also be defined as:

fromPartialUriResolverWithoutFallback(
 PartialUriResolvers.fromPartialUriConverter(liftedUriConverter))

Concrete fields