Class Uri

  • All Implemented Interfaces:

    
    public final class Uri
    
                        

    Uri class for working with wrap URIs.

    • wrap://ipfs/QmHASH

    • wrap://fs/directory/file.txt

    • wrap://http/https://example.com

    • wrap://ens/sub.domain.eth

    Breaking down the various parts of the URI, as it applies to the URI standard:

    • wrap:// - URI Scheme: differentiates Polywrap URIs.

    • ipfs/ - URI Authority: allows the Polywrap URI resolution algorithm to determine an authoritative URI resolver.

    • sub.domain.eth - URI Path: tells the Authority where the Wrapper resides.

    The primary constructor consumes an FfiUri and deallocates its memory.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final <Error class: unknown class> uri
      private final <Error class: unknown class> authority
      private final <Error class: unknown class> path
    • Constructor Summary

      Constructors 
      Constructor Description
      Uri(String uri) Constructs a Uri instance from a wrap URI string.
      Uri(<Error class: unknown class> ffiUri) Constructs a Uri instance from a wrap URI string.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final <Error class: unknown class> getUri() The string representation of the Uri
      final <Error class: unknown class> getAuthority() The authority component of the Uri
      final <Error class: unknown class> getPath() The path component of the Uri
      Boolean equals(Object other)
      String toString()
      Integer hashCode()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Uri

        Uri(String uri)
        Constructs a Uri instance from a wrap URI string.
        Parameters:
        uri - a string representation of a wrap URI
      • Uri

        Uri(<Error class: unknown class> ffiUri)
        Constructs a Uri instance from a wrap URI string.