@ExperimentalApi public abstract class

AvatarFormatPolicy

extends Object
java.lang.Object
   ↳ com.atlassian.jira.avatar.AvatarFormatPolicy

@ExperimentalApi

This class is considered usable by external developers but its contracts have not stabilized.

Experimental APIs may be changed at any time before being marked @Internal or @PublicApi.

Class Overview

Used to request a specific format of an avatar image.

Summary

Nested Classes
class AvatarFormatPolicy.PngAvatarFormatPolicyBuilder Builder used for building PngAvatarFormatPolicy. 
Public Constructors
AvatarFormatPolicy()
Public Methods
static AvatarFormatPolicy createOriginalDataPolicy()
static AvatarFormatPolicy.PngAvatarFormatPolicyBuilder createPngFormatPolicy()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AvatarFormatPolicy ()

Public Methods

public static AvatarFormatPolicy createOriginalDataPolicy ()

Returns
  • a policy that will always use the actual content type of the avatar.

public static AvatarFormatPolicy.PngAvatarFormatPolicyBuilder createPngFormatPolicy ()

Returns
  • a policy builder that is expecting avatar in PNG format. If not possible fallback strategy will be applied.