| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<StreamingProvider>
com.silverpeas.gallery.constant.StreamingProvider
public enum StreamingProvider
| Enum Constant Summary | |
|---|---|
dailymotion
 | 
|
soundcloud
 | 
|
unknown
 | 
|
vimeo
 | 
|
youtube
 | 
|
| Field Summary | |
|---|---|
static Set<StreamingProvider> | 
ALL_VALIDS
 | 
| Method Summary | |
|---|---|
 String | 
extractStreamingId(String url)
Gets the identifier of the stream from an url.  | 
static StreamingProvider | 
from(String provider)
Retrieves from the specified string the streaming provider.  | 
static StreamingProvider | 
fromUrl(String streamingUrl)
Retrieves from the specified string the streaming provider.  | 
 String | 
getName()
 | 
static String | 
getOembedUrl(String homepageUrl)
Gets the oembed url from the homepage url of a streaming.  | 
 List<String> | 
getRegexpDetectionParts()
Gets the regexp detection parts  | 
 boolean | 
isUnknown()
Indicates if the provider is an unknown one.  | 
static StreamingProvider | 
valueOf(String name)
Returns the enum constant of this type with the specified name.  | 
static StreamingProvider[] | 
values()
Returns an array containing the constants of this enum type, in the order they are declared.  | 
| Methods inherited from class java.lang.Enum | 
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
public static final StreamingProvider unknown
public static final StreamingProvider youtube
public static final StreamingProvider vimeo
public static final StreamingProvider dailymotion
public static final StreamingProvider soundcloud
| Field Detail | 
|---|
public static final Set<StreamingProvider> ALL_VALIDS
| Method Detail | 
|---|
public static StreamingProvider[] values()
for (StreamingProvider c : StreamingProvider.values()) System.out.println(c);
public static StreamingProvider valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static StreamingProvider from(String provider)
provider - the exact string of the provider (it is not case sensitive)
unknown otherwise.public static StreamingProvider fromUrl(String streamingUrl)
streamingUrl - the exact string of the provider (it is not case sensitive)
unknown otherwise.public static String getOembedUrl(String homepageUrl)
homepageUrl - the streaming home page url.
public String getName()
public List<String> getRegexpDetectionParts()
public boolean isUnknown()
public String extractStreamingId(String url)
url - 
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||