Package org.exoplatform.commons.embedder
Class AbstractEmbedder
- java.lang.Object
-
- org.exoplatform.commons.embedder.AbstractEmbedder
-
- All Implemented Interfaces:
Embedder
- Direct Known Subclasses:
OembedEmbedder,YoutubeEmbedder
public abstract class AbstractEmbedder extends Object implements Embedder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringcorrectURIString(String uriString, String scheme, boolean force)Correct URI Stringprotected abstract org.exoplatform.services.log.LoggetExoLogger()protected org.json.JSONObjectgetJSONObject(URL url)protected PatterngetPattern()voidsetUrl(String url)Set provided url to Embedder object to process.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.exoplatform.commons.embedder.Embedder
getExoMedia
-
-
-
-
Method Detail
-
getPattern
protected Pattern getPattern()
-
setUrl
public void setUrl(String url)
Description copied from interface:EmbedderSet provided url to Embedder object to process.
-
correctURIString
public String correctURIString(String uriString, String scheme, boolean force)
Correct URI String- Parameters:
uriString- URI string to correctscheme- scheme to setforce- if force is false, only set again scheme when scheme is missing. Otherwise, always set it- Returns:
-
getJSONObject
protected org.json.JSONObject getJSONObject(URL url)
-
getExoLogger
protected abstract org.exoplatform.services.log.Log getExoLogger()
-
-