public class Configuration extends AbstractJsonMapping implements Serializable
| Constructor and Description |
|---|
Configuration() |
| Modifier and Type | Method and Description |
|---|---|
void |
clone(Configuration config)
Copy the data from the passed object to this one
|
URL |
createImageUrl(String imagePath,
String requiredSize)
Generate the full image URL from the size and image path
|
List<String> |
getBackdropSizes() |
String |
getBaseUrl() |
List<String> |
getLogoSizes() |
List<String> |
getPosterSizes() |
List<String> |
getProfileSizes() |
String |
getSecureBaseUrl() |
List<String> |
getStillSizes() |
boolean |
isValidBackdropSize(String backdropSize)
Check that the backdrop size is valid
|
boolean |
isValidLogoSize(String logoSize)
Check that the logo size is valid
|
boolean |
isValidPosterSize(String posterSize)
Check that the poster size is valid
|
boolean |
isValidProfileSize(String profileSize)
Check that the profile size is valid
|
boolean |
isValidSize(String sizeToCheck)
Check to see if the size is valid for any of the images types
|
void |
setBackdropSizes(List<String> backdropSizes) |
void |
setBaseUrl(String baseUrl) |
void |
setLogoSizes(List<String> logoSizes) |
void |
setPosterSizes(List<String> posterSizes) |
void |
setProfileSizes(List<String> profileSizes) |
void |
setSecureBaseUrl(String secureBaseUrl) |
void |
setStillSizes(List<String> stillSizes) |
handleUnknown, toStringpublic String getBaseUrl()
public String getSecureBaseUrl()
public void setBaseUrl(String baseUrl)
public void setSecureBaseUrl(String secureBaseUrl)
public void clone(Configuration config)
config - public boolean isValidPosterSize(String posterSize)
posterSize - public boolean isValidBackdropSize(String backdropSize)
backdropSize - public boolean isValidProfileSize(String profileSize)
profileSize - public boolean isValidLogoSize(String logoSize)
logoSize - public boolean isValidSize(String sizeToCheck)
sizeToCheck - public URL createImageUrl(String imagePath, String requiredSize) throws MovieDbException
imagePath - requiredSize - MovieDbExceptionCopyright © 2012–2017. All rights reserved.