|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.util.filter.impl.AddBaseURLToMediaRelativeURLFilter
public class AddBaseURLToMediaRelativeURLFilter
Description:
This filter searches in the given HTML string for relative media urls that
point to media files and adds the given mapper base path to this URL to
deliver the media files with absolute URLs.
Example:
<img src="media/myimage.jpg" />
This will be converted to:
<img src="http://your.olat.com/olat/m/12345/media/myimage.jpg" />
The resulting string can be embedded into any HTML page and the media files will be loaded from the mapper base path.
Initial Date: 16.07.2009
| Constructor Summary | |
|---|---|
AddBaseURLToMediaRelativeURLFilter(java.lang.String mapperBaseURL)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
filter(java.lang.String original)
Filter the original value and return the result. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AddBaseURLToMediaRelativeURLFilter(java.lang.String mapperBaseURL)
mapperBaseURL - The mapper base url that is used in this filter as a
prefix for relative media URL| Method Detail |
|---|
public java.lang.String filter(java.lang.String original)
Filter
filter in interface FilterFilter.filter(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||