public class AvatarRequest extends Object
Constructor and Description |
---|
AvatarRequest(boolean secure,
@Min(value=1L) int size)
useConfigured is defaulted to false |
AvatarRequest(boolean secure,
@Min(value=1L) int size,
boolean useConfigured)
Constructs a new
AvatarRequest for the provided scheme and size . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getSize()
Retrieves the size desired for the avatar.
|
int |
hashCode() |
boolean |
isSecure()
Retrieves a flag indicating whether avatar URLs should use HTTPS.
|
boolean |
isUseConfigured()
Retrieve the URL using the configured base URL.
|
public AvatarRequest(boolean secure, @Min(value=1L) @Min(value=1L) int size)
useConfigured
is defaulted to false
secure
- true
if avatar URLs should use HTTPS; otherwise, false
for HTTPsize
- the height/width of the avatar being requestedAvatarRequest(boolean, int, boolean)
public AvatarRequest(boolean secure, @Min(value=1L) @Min(value=1L) int size, boolean useConfigured)
AvatarRequest
for the provided scheme
and size
.
The secure
flag allows the caller to control whether avatar URLs use HTTP or HTTPS. The size
controls the dimensions of the avatar returned.
secure
- true
if avatar URLs should use HTTPS; otherwise, false
for HTTPsize
- the height/width of the avatar being requesteduseConfigured
- whether to use the configured base URL; if false
the request context will be used insteadIllegalArgumentException
- if the provided size
is less than 1.NullPointerException
- if the provided scheme
is null
.public int getSize()
public boolean isSecure()
true
, the returned URLs
will use HTTPS; otherwise, they will use HTTP.public boolean isUseConfigured()
true
if the URL should use the configured base URL. false
otherwiseCopyright © 2019 Atlassian. All rights reserved.