Interface AvatarReference

All Known Implementing Classes:
AvatarReference.BlobAvatar, AvatarReference.UriAvatarReference

public interface AvatarReference
A directory may represent avatars as references to URLs or as binary blobs. This interface unifies those two possibilities behind a single marker interface.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    An image represented as a blob of bytes along with a content type.
    static class 
    A reference to an avatar available through a user's browser.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return a URI, which may be a large data: URI, that points to this avatar.
  • Method Details

    • toUri

      URI toUri()
      Return a URI, which may be a large data: URI, that points to this avatar. This is not suitable for redirecting to with a Location header, but is suitable for embedding directly in an HTML page.